LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading text files sequentially

Solved!
Go to solution

Hi Everyone,

 

I have a number of text files with sampled data which were taken at  set intervals. I have written a small, simple Vi to calculate the RMS from these files individually. Ideally what I would like to be able to do is plot how the RMS changes over time, in other words run the VI for each file and plot on a graph. Does anyone have any ideas if/how this may be done.

 

Thanks in advance

 

Jack

0 Kudos
Message 1 of 5
(2,541 Views)

Hi Jack,

if you already have the code to do it for one file, then you can simply expand it with a for loop. Connect an array with all your files to it and plot the result to a chart or graph.

 

Mike

Message 2 of 5
(2,540 Views)

Thanks for idea of creating a loop and adding to an array. Is there any way of the programming the VI to automatically process each data file in sequence since I have too many files to open manually. Each file is time stamped if that is of any help.

 

Thanks once again.

 

Jack

0 Kudos
Message 3 of 5
(2,524 Views)
Solution
Accepted by topic author jnaumann

Hi Jack,

you can get an array of all your files if you use the "List Folder" function.

 

See the attached image as an idea.

 

Hope it helps.

Mike

Message 4 of 5
(2,510 Views)

Thanks Mike - Thats perfect.

0 Kudos
Message 5 of 5
(2,487 Views)