AnsweredAssumed Answered

Calculate number of value changes with a time separation

Question asked by CraigStocker on Dec 15, 2019
Latest reply on Dec 17, 2019 by Roger Palmen

Hi,

 

 

I currently have an event frame analysis set up which has a valve status PI tag ("Open" or "Closed") input, and uses the NumOfChanges function to calculate the number of times the valve is opened over a 24 hour period. An issue i'm having is that the valve tends to occasionally oscillate quite fast between open and closed, so I would like to filter the output to only count changes with a 1 hour separation. Currently the code used is; (NumOfChanges('Status',EventFrame("StartTime"),EventFrame("Endtime") /2

 

If there is any way I can do this it would be very useful!

Cheers,
Craig

Outcomes