Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Use an enumeration to select local variable to plot

Solved!
Go to solution

I have some arrays of 2D point locations stored in local variables.  For diagnostic purposes, I would like to be able to select one (any) of these current local variables and plot them.  I can do this one at a time by indexing the array, and adding a 255 to the z value of each array coordinate pair and then passing them all indexed to an intensity graph.  Setting a time delay lets me "look" at the relative positions of array points as they are plotted.  I know none of you have had problems with row,col x,y reversals and the like, but I need something to help me visualize these interactions.  Stepping through the simultaneous plot of two of these arrays would let me see which points relate to others as I work on the arrays.  Rather than having to "program" each time I wanted to have the point locations display, I would rather choose them from a list from some little sub vi that I could run any time I wanted...How might one go about that?  Or, is there a better way.

 

Basically, how do you populate an enumeration control with the list of local variables?

 

Thanks.

0 Kudos
Message 1 of 3
(3,508 Views)

Hummer1

 

I believe there's a property node for an enumeration control that you can use to set the entries in it.  You might want to post to the LabVIEW forum - they'll probably be able to help you more!

 

Greg Stoll

Vision R&D
National Instruments

Greg Stoll
LabVIEW R&D
0 Kudos
Message 2 of 3
(3,503 Views)
Solution
Accepted by topic author Hummer1

You can't change the labels for an enum during runtime.  However, you can use a pull down list (right next to enum) that will do exactly what you want.  Just use the property "Labels" to set all the items for the control.

 

Bruce

Bruce Ammons
Ammons Engineering
Message 3 of 3
(3,483 Views)