02-05-2006 04:43 PM
02-05-2006 07:39 PM - edited 02-05-2006 07:39 PM
Hi Toto,
Here is the first thing I thought of. Initialize an array of 1000 elements, and replace an element each iteration of the loop. Use the Quotient and Remainder function along with the iteration count of the loop to replace the oldest element in the array. Add the array and divide by 1000 in each iteration to get the current average. I've attached the VI (saved in LabVIEW 7.1), along with a screenshot for anyone who wants to see it but doesn't have LabVIEW 7.1 or later.
Good luck,
-D
Message Edited by Darren on 02-05-2006 07:40 PM
02-06-2006 03:56 AM
02-06-2006 08:25 AM
02-06-2006 08:34 AM
02-06-2006 08:48 AM
02-06-2006 03:02 PM
Hi everyone,
Thanks to all of you for your quick help and answers!
I'll try some of your ideas,
cheers,
Toto