LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to execute a command which varies depending on the number entered into the front panel

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

0 Kudos
Message 1 of 4
(2,444 Views)

It sounds like you need to index a 2D array of clusters.

=====================
LabVIEW 2012


0 Kudos
Message 2 of 4
(2,432 Views)

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.

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 3 of 4
(2,422 Views)

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.

0 Kudos
Message 4 of 4
(2,396 Views)