LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

adding a list to combobox

Hi All:
 
I'm hoping that someone can point me in the right direction on this one.
 
I have used the 'List Folder Function' in Labview 8 to create a list of my data files. That part works fine.
I have also been able to build on that to copy and paste the file I choose and output to another subVI.
 
However......
 
Is there an easy way to port the list of files directly into a combobox so that the user can simply select
from there?
 
I haven't found a way to do this and I am not even sure if it's possible but it would seem that this would be
a fairly welcomed feature.
 
Thanks in advance for any help!
 
Phil
0 Kudos
Message 1 of 5
(2,964 Views)
You can take the file list output and wire that to the Strings[] property node of your combo box control.
 
Example in LV8.0 attached.
 
Hope this helps you out.
 
David
0 Kudos
Message 2 of 5
(2,959 Views)
Thank you David very much!
 
I thought that there must be an easy way to it. My original vi was nearly a carbon copy of your example with the exception of the strings [] function.
 
Now If i can just find that dastardly strings[], I should be all set.
 
Thanks again!
 
Phil
0 Kudos
Message 3 of 5
(2,951 Views)
Just right click on your combo box and create a property node and select the Strings[] property. You need to set the property node to Write mode. This can be done by right clicking on the property node and selecting Change to Write if your node is initially in Read mode.
 
You can get help on creating property nodes from Labview Help. Also look in NI Example Finder goto to the search tab and enter property nodes. There are good examples on how to property nodes can be used.
 
David
0 Kudos
Message 4 of 5
(2,947 Views)
Yep! I found it.
 
I have the VI working now as I had hoped.
 
Thanks again for your help!
 
Phil
0 Kudos
Message 5 of 5
(2,939 Views)