LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

select multiple files from listbox

Hi, I'm trying to select muliple files from a listbox and displaying the selected files into another listbox...But i keep getting an error that says wrong connection. Can anyone pls take a look at my program(searchingforfiles.vi)? It is actually from reference to a Table_Selection[1].vi i found.
 
Thanks!
Download All
0 Kudos
Message 1 of 6
(3,567 Views)
See attached example. The selection mode of Results: has been changed to allow to select more than one item. (Front Panel >> right-click on Results: >> Selection Mode >> 1 or More Items).

This will solve the problem but the code could be improved in many other ways... You should at least set the label of all controls and indicators !


0 Kudos
Message 2 of 6
(3,557 Views)
Thanks, i'll take note of that. But when i try to do it on my original vi, it becomes more error and i've already changed the selection mode to 1 or more items. Did i miss some other steps?
 
 
0 Kudos
Message 3 of 6
(3,552 Views)
See below picture. You must disable the indexing for the upper wire.



Please take the time to understand this very important difference !


Message Edité par JB le 07-05-2007 10:45 AM

0 Kudos
Message 4 of 6
(3,549 Views)
Thanks, but is it a must to put a for loop? Doesnt the while loop do the job?
0 Kudos
Message 5 of 6
(3,522 Views)
The for loop is what allows you to only put into the listbox the items that you selected in the results box.  The while loops keeps it running and updateable until you stop the program.
 
You should put a small wait statement in that while loop.
0 Kudos
Message 6 of 6
(3,513 Views)