Hi
I am reading the temperature of a furnace, and I am finding that my data is
a little bit noisy. I do not need to store the data, I just need to be able
to plot it on a X-Y chart.
In order to smooth out the data, I have been performing a 20 point average
on it - each data point which is plotted is actually the average of the last
20 data points which were collected. I have done this by storing the data in
an array, and just taking a subset of the array to grab the last 20 points.
The problem with doing this, is that over time I am creating a very large
array (I am taking 5 data points a second). Is there any other way in which
I can average the last 20 collected data points, without having to store the
whole lot in an array?
Cheers
Jon Atkinson