01-19-2011 11:09 AM
Hi,
I am using labview to move a pair of Zaber linear stages. I am using the two stages together so I can move my sample in x and y. I have managed to create a simple program in labview using state system which allows me to move the stages in a particular order over my sample.
My sample is broken down into 100 squares. Each square therefore has a different position. Each square is given a different number, and I know the position of each square, for example to position on #1, I need to move stage 1 by 2000 microsteps and stage 2 by 2000 microsteps.
I was wondering how I could type the number of the square into the front panel, and have the relative positions for each square number stored somehow. So when the number is typed in by the user, the programme knows exactly where to go. How would I go about doing this?
Thanks
01-19-2011 11:31 AM
It sounds like you need to index a 2D array of clusters.
01-19-2011 01:55 PM
How are your positions numbered? Is it a linear 1 .. x or do you have X Y coordinates, i.e. 1,3? If the former then a 1D array of text, representing the two axis microstep counts would work, and would just mean that when the user entered the position number it would index to the correct text, which would be then parsed to the X&Y values. The other way would index a 2D array with each element once again have a textual representation of the positioner's microstep values. These arrays could be saved to a file, if there was ever a need to have different position grids.
01-20-2011 03:19 AM
Hi,
The positions are linear, numbered from 1 to 100. Thanks for the advice I will try now to see if I can get something working.