Hi John,
There are different ways of performing running average. One of the easiest is to add the value from the last couple of measurements and divide it with the number of measurements. You could use a Shift Register in a loop to keep the value of the last couple of measurements instead of saving everything to a file first.
What you are explaining, is actually the average of the total number of measurements. Doing this you would have to apply weighting to the previous average, so it has a higher importance if it represents a lot of data compared to only a few measurements.
You can find both types of averaging in the attached "Average.vi" and "Average.jpg" (in case you don't have LabVIEW 7.1).
Best regards,
Philip C.
National Instrument
s
- Philip Courtois, Thinkbot Solutions