04-14-2011 08:16 AM
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
Solved! Go to Solution.
04-14-2011 08:43 AM
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
04-14-2011 08:55 AM
I will try that and see...
Thanks.
04-14-2011 09:00 AM
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.
04-14-2011 09:11 AM
I have done some modifications on your vi.
04-14-2011 09:25 AM
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.
04-15-2011 06:37 AM
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.