01-19-2011 06:11 AM
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
Solved! Go to Solution.
01-19-2011 06:13 AM
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
01-19-2011 06:53 AM
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
01-19-2011 08:04 AM
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
01-19-2011 09:08 AM
Thanks Mike - Thats perfect.