06-04-2011 12:17 PM - edited 06-04-2011 12:18 PM
Hello,
My setup is run by labview and would like to reduce the noise associated with my data by taking more averages.
I'd like to have the average data points and taking the average of them and record only the average simultaneously as the experiment is
proceeding. E.g.. My experiment is voltage vs. field. For each field, I want three voltage readings and the software should calculate the average and then
register the average in the data file. The reason why I don't repeat the measurement is that it would take a while to do it in this way.
Can you advise how to do this with labview.
Many thanks
Solved! Go to Solution.
06-04-2011 01:42 PM
There is a "Mean" function on the palettes under Mathematics then Prob &Stat. That, or you could just add the 3 values together and divide by 3.
Where are you stuck?
06-05-2011 03:00 PM
Thank you for your reply. I attahced a code that similar to the one I use except that the there are two random number generators to mimic voltage vs
field measurement. Can you show me how to do the average of three points in each iteration.
Many thanks
06-06-2011 02:02 AM
Hi Hadiq,
Take a look at the attached vi. I think this will solve your problem. This takes the avg of 3 simultaneous values from a random number array and logs it into the txt file as you needed.
Regards,
Nitzz
(Give kudos to good Answers, Mark it as a solution if your problem is Sloved;))
06-06-2011 01:26 PM - edited 06-06-2011 01:27 PM
Many thanks Nitzz for your help.