I have a need to display a running average of the rate of an event on our machine. Let me give a fictitious example:
[I][INDENT]An operator loads widgets into a bag then heat seals the bag. They may do anywhere from 5-8 bags a minute.[/INDENT][/I]
I want to show a running average of the parts per minute rate over the last 10 minutes.
I’ve been experimenting for the past few hours trying to find the best way to achieve this in PAC Control or Display. I know how I would do this in C++ but to do the same in chart logic is a bit daunting. If I had to do it now I would use a looping chart with a main loop delay of say 1 second. I would then user timers or manually adjusted variables to detect and store the periods of data. Then the purging of old period data and the averaging needs to be done. It’s doable I’m sure, but it seems like maybe there is a better way?
So I’d like to ask if any of you here have implemented something like this where you display a rolling average of the rate of some event? If so, how did you do it?