LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do i read many files in one folder and plot in one graph?

I've over one hundred text files in one folder. I'd like to read the folder and plot and intensity graph. I can read each file in that folder and plot it. But I do not know how to read many files in one folder and plot those files in intensity graph.
0 Kudos
Message 1 of 7
(3,184 Views)

You may use Build Array or combine all data in a single cluster to plot on the same graph.

 

0 Kudos
Message 2 of 7
(3,173 Views)

Dear Sir,

 

I think there is an example which can let you select mulitple files and then you can do manipulation after selecting the files. You can search for mulitple files loading, i have seen it somewhere before.

 

Thanks!

0 Kudos
Message 3 of 7
(3,163 Views)

Hi

      I do not need to select the files in the folder. I just want to read the whole folder and plot it. I know how to read the files in the folder but my problem is to read the whole folder. I just need the example how to read the folder.( not the files in that folder)

 

Thanks

0 Kudos
Message 4 of 7
(3,144 Views)

Hi

 

I don't think there is a function that open all files from a folder but your can do this:

 

call your file with number ( 1.xls 2.xls 3.xls ....)

use a for loop with n = number of file

use the i box to generate the right file path

  

You should be able to collect all the data that you need. 

 

With the picture, it should be more clear.

 

 Francis

 

 

0 Kudos
Message 5 of 7
(3,132 Views)

Hi,

       Could you please provide me an example? I'd like to build the array for 100 text file and combine it to one cluster. I read one file and plot the waveform graph and intensity graph. I'd like to plot intensity graph for all text files in one folder.

 

Thanks

 

Zlidar   

0 Kudos
Message 6 of 7
(3,090 Views)

I don't know if I understood what you want, but try the attached VI.

 

Select the folder first, then run the VI. It will feed the For Loop with a list of all files of the selected folder.

 

Dan07

Message Edited by dan07 on 04-15-2010 01:29 PM
0 Kudos
Message 7 of 7
(3,075 Views)