ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add files in a directory to a List box

Hi,
 
   I am trying to add files a directory to a ListBox control. For some reason it does not work as I want. Could some one show me how to do it to me. My Vi is attached.
 
Thank you,
Pubudu
0 Kudos
Message 1 of 2
(3,522 Views)

To populate a listbox, you just have to wire the string array from the List Folder function to the property node. You also need to change the browse option of your path control to Folders and not files. I have no idea what you are trying to do with the item symbols. Wiring a numeric does not use that numeric as the symbol. You don't even have the symbols visible on the listbox.

As a programming method, you do not wire a numeric to a for loops count terminal and also wire in an array with auotindexing enabled. Doing both is redundant. You might want to go to here and get some basic LabVIEW training.

Also, since this question has nothing to do with TestStand, you just post similar questions to the LabVIEW board.



Message Edited by Dennis Knutson on 02-03-2008 08:27 AM
0 Kudos
Message 2 of 2
(3,507 Views)