Averaging Values in For Loop

UsernameD:
Ok that explaination makes sense to me. I will try coding it tonight and try to implement on real system on Monday. Thanks UK

I suggest that you start with a small number of data points read from an array of values. That way you have control over what goes in and can determine whether the calculated average is what you expect it to be.