Hello;
Was trying to set up a 6hr rolling average for a Fire Weather Index on a CR1000x.
My scan rate is 1 second; so my code is as follows:
AvgRun(FFWI6,21600,FFWI,Number)
My question being is the Number here going to be 21600? That seems awfully high and I'm afraid it will impact performance. If I set it lower is it going to cut off part of the data stream in the average?
Thanks,
Chris
Hi,
You have got your 21600 number in the wrong place. It should be as follows :-
AvgRun(FFWI6,1,FFWI,21600)
If you have a 1s scan rate and you want to keep a 6 hour running average, then you will need to keep 21600 values averages every 1s.
Is the FFWI calculated every 1s? If it is, then you would need to average this as above. If it is output say from an output table every 5mins, then you would need to extract that value and average that instead.
Thanks, that makes more sense.