Are you reading the 15 minute data file and computing mean?  how
about, writing the data to file as you are but adding the running sum
of each value and dividing by N at the end of the sample period.  This
will eliminate the file read/compute  accumulate the running sum as a
double so that you don't run out of headroom.  (or divide by N before
adding to the running sum).

Reply via email to