LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Average Data from multiple text files

Solved!
Go to solution

I am new to labVIEW hence a little help is appreciated:

 

I have a 100 txt files with two columns (tab separated) for X and Y value.

I need to average the Y values to generate one single txt file and generate X versus Y graph.

 

So how do I read the data from these text files? (without having to select each one of them individually) and how to average the data and create a XY graph from it?

 

Thanks in advance

0 Kudos
Message 1 of 5
(2,996 Views)
Solution
Accepted by topic author Advait

There is a List Folder function in the File I/O palette that will return an array of filenames.  Feed that array into a For Loop to open and read each file in turn.  Place in a new file, build an array with it, process the data, or do whatever you want.

 

 

Message 2 of 5
(2,993 Views)

Thanks 🙂

 

I managed to get the average in one text file.....tab separated X and Y values. How should I plot a X vs Y waveform?

0 Kudos
Message 3 of 5
(2,976 Views)

Use X-Y Graph. Smiley Indifferent

You were able to get two arrays of X and Y points from text file right?

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
Message 4 of 5
(2,970 Views)

please post he vi that u did,

Thank you.

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