LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Populate Combo Box with File Names in a Folder

I want to have a Combo Box or drop down menu for a user to select a filename that exsists in a specific folder.  I don't want the user to have access to various folders.  I want them to be limited to the files in a specific folder.  I attached a screenshot of an example of what I want the finished result to be with the Combo Box displaying the files in a specific folder.  The files in the folder will change in the future so I want the Combo Box to update each time the vi is executed.

 

Thanks,

Nathan

0 Kudos
Message 1 of 3
(4,062 Views)

Hi,

 

You can do something like the photo attached. This will grab a list of the files in the folder and list them in the combo box.  The property node used is the combo box/strings.



-Matt
Message 2 of 3
(4,037 Views)


I want to have a Combo Box or drop down menu for a user to select a filename that exsists in a specific folder.  I don't want the user to have access to various folders.  I want them to be limited to the files in a specific folder.  I attached a screenshot of an example of what I want the finished result to be with the Combo Box displaying the files in a specific folder.  The files in the folder will change in the future so I want the Combo Box to update each time the vi is executed.



Use List File Function to get the files under specified folder and using property node of combo box (Property Name:Strings) display the Listed Files

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 3 of 3
(3,957 Views)