Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

AvgRun Question


ccowin Jul 16, 2019 09:41 AM

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


nsw Jul 18, 2019 08:40 AM

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.


ccowin Jul 23, 2019 05:33 PM

Thanks, that makes more sense.

Log in or register to post/reply in the forum.