LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array help for beginner

Hi, I need to create possibly a 2d array that I can enter coordinates that would plot out a shape on an xy graph but would have to wait for an input before moving onto the next coordinate, for example: to plot a square, start- x=0 y=0, x=0 y=10 (first line) the plot would wait for a true input before continuing, x=10, y=10(second line)wait for input, x=10, y=0(third line)wait for input, x=0, y=0(fourth line) finish and stop. I want to take these coordinates and use them for two 0-10v outputs.Many thanks for any help. 
0 Kudos
Message 1 of 2
(2,374 Views)

You can create a 2D array on the front panel, and limit it to display only a certain number of rows and certain number of columns, and to hide the index display:

 

You couls also use a table instead. 

 

This way the user can enter the values without having to press some "Next" button. Once they're done they can press some "Done" button and you can simply check over the array to make sure it's OK, and if not let the user know. As a user I would probably prefer this method rather than the step-by-step method. But that's just me.

Message Edited by smercurio_fc on 11-20-2008 05:12 PM
0 Kudos
Message 2 of 2
(2,348 Views)