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.

Rolling Averages


BertSP Jul 30, 2020 10:51 PM

On a CR1000 I am trying to write code for a rolling average of readings (Temp) that would give me the average of the last X readings over Y time (intervals equal). FILO. The oldest reading would be dropped off in favor of the newest and then the X number of readings re-averaged. This would be different to averaging every X number of readings and then starting back to zero at the end of the time cycle. Is there such a capability?


JDavis Jul 30, 2020 10:53 PM

Look at the AvgRun() instruction.


BertSP Jul 30, 2020 11:04 PM

Don't know how I missed it, thank you.


jra Jul 31, 2020 02:25 PM
Log in or register to post/reply in the forum.