LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I create a drop down menu from an array

Hello all,
 
I am attempting to create a subvi that allows the end user to add a part number to an .txt file, and assigns that part number a value than can be used to select one of two modes of communication to be used to write to a EEPROM.   I am using the "write key.vi" and the "read key.vi" to create and read the .txt file.  What I would like to do is is use "get section names.vi" to read all of the part numbers and dump them into a drop down menu after the end user generates the file using the subvi.
 
I guess my question is how do I dump a 1D string array into a drop down menu.
 
I have attached some semi-functional .vi's to give an idea of what i am attempting to do.
 
Erik
 
 
Download All
Message 1 of 4
(6,618 Views)
I can't read your VI but I wrote this as an example to your previous post.
Message 2 of 4
(6,609 Views)
Place a Ring control on your front panel, then create a property node on the block digram. You can wire the output array of "Get Section Names" to populate the Strings[ ] property of the Ring.

Retrieve the specific string selected by the operator by wiring the Ring control to the Index Array function.
0 Kudos
Message 3 of 4
(6,608 Views)

Thanks a million guys!!!  I have it working now. 

 

Erik

0 Kudos
Message 4 of 4
(6,592 Views)