LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Inputing multiple files at once

I wrote a program that conducts a search within this huge file... however, i need it to conduct a search within several files... ie, finish one file and start searching through another... how does one go about inputing multiple files? (and i need the user to input the files during runtime, as in select them from a dialog box so i need a way basically for the user to be able to press down the control button and select several files and then i need the code to search through each file)... the program is attached for reference... thank you very much for your help
Christina
0 Kudos
Message 1 of 5
(2,968 Views)
The attached file illustrates how to accomplish what you are asking. This VI assumes that you designate a pre-defined directory for your datafiles. When you run the vi, it will do a directory list into the listbox. The user will be able to select multiple files from the list box then click "Start Search". Once the button is clicked, the program will loop through the code that you provided and simply build an array of data for the XY Graph. The data will be displayed on the XY Graph when it has looped through all of the datafiles. Send me an email if you have any questions or if none of it makes sense. Good Luck.
0 Kudos
Message 2 of 5
(2,968 Views)
this is unfortunately tragic but you appear to have a newer version of labview and my old version (6.1 i believe) is unable to open it... might you know a solution to this problem?

Thank you
Christina
0 Kudos
Message 3 of 5
(2,968 Views)
Sorry about that. I just tried to save for Labview 6.1 and can't seem to get it to go without getting a bunch of errors. I pasted some screen scrapes of the front panel and block diagram to show you what I did. It's pretty straight forward. I had to use 2 screen scrapes for the block diagram due to the size. Take a look at it, if you have any problems or questions, let me know.

P.S. There isn't any significant code in the False cases of the 2 cases that are used. Just wire things through in these cases.
0 Kudos
Message 4 of 5
(2,968 Views)
thank you very much... i really appreciate your help!
0 Kudos
Message 5 of 5
(2,968 Views)