0

Keeping track of max time of activity per hour

Lars Olsson 2 months ago in IQANdesign updated by Gustav Widén (System support) 1 month ago 1

I have a task to keep track of the time a machine runs at an increased speed which is allowed 5 min/hour in total. Time at overspeed is added to a counter but I also need to handle the fact that overspeed that happened an hour ago needs to be subtracted. Has anyone had a task like that and found out a good solution?


/Lars

One way to approach it could be to think of it in a similar way as a moving average filter. Accumulate time in a limited number of slots in an array, and check the total of those slots. 

Here is an example of how you could implement it in IQANdesign:

overspeed.idsx