LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Averaging the data output.

Solved!
Go to solution

Hi,

 

I am a new user of Labview. I need to write a labview program that will average my output data into a single data.

Basically, i have an XY graph which outputs into an array and the idea is to average the data points.

Here is the kind of program i am using.

thanks,

 

Mutah

0 Kudos
Message 1 of 7
(2,464 Views)
Solution
Accepted by topic author Mutah

Hi Mutah,

 

 

You can index the array and use the mean function (inside Mathematics - Probability and Statistic). Then, you will get the average value of each array. If you want to see the averages in an array, then you can combine the average values into an array again...

 

Hope this help you out

0 Kudos
Message 2 of 7
(2,456 Views)

I will try that and see...

 

Thanks.

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

Hi,

 

i am not getting the right thing...i need to fix the average of the whole loop for a certain number of times.

 

M. 

0 Kudos
Message 4 of 7
(2,447 Views)

I have done some modifications on your vi.

0 Kudos
Message 5 of 7
(2,443 Views)

 

what the v.i is doing is that it is summing up the data in X and in Y and then finding the mean.

My idea is to change the array into a matrix and then averaging up the same columns and rows and 

at the end i will have a matrix of X and Y and could plot those points.

In your case, i can't plot the mean values. In my v.i, i set the smapling number.

 

0 Kudos
Message 6 of 7
(2,440 Views)

Hi,

 

Ahh.. Sorry... I missunderstood what's your problem.  Well, I think there's several way to do that.

 

Here I did some other modfications. Hopefully, it works as you expect.

0 Kudos
Message 7 of 7
(2,421 Views)