LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need to collect data from a lot of text files with names in numerical order

I have a lot of data files in a text format, where I need to collect some specific data inside them. The files are by another program named in numerical order.

I have already made a VI where I manually select the files one at a time, get the data I need, put it into an array and save the data from all the selected files. Now I would like to be able to just select the first file, and then let the VI run through this and all the following data files and collect the data. Also, it has to stop collecting data, when there are no more files to open.

 

Any idea how I do this? 

0 Kudos
Message 1 of 2
(2,264 Views)
If all of the files are in the same folder you can use List Folder to list all of the files based on a pattern. You can then use this to auto-index a for loop.
0 Kudos
Message 2 of 2
(2,249 Views)