only log a not ready every so often

heffneil

Active Member
I have a eye that runs on the front of my property. It records a lot like if someone drives by it might record 3 or 4 times. How can I setup a program that only logs every 4 seconds of the fault - or in other words ignores faults 4 seconds after the first? I know there has to be a way. Any ideas?

Thanks!

Neil
 
Yeah I was thinking of a flag or something programmatic. I have used the delay relay. Ut I'd rather not rely on hardware for this. Thanks!
 
If you want a 4 second exclusion from the first trigger:
Code:
WHEN Zone NOT READY
AND IF Flag OFF
  THEN Flag ON FOR 4 SECONDS
  THEN LOG Whatever
If you want 4 seconds of "SECURE" between triggers:
Code:
WHEN Zone NOT READY
AND IF Flag OFF
  THEN LOG Whatever
 
WHEN Zone NOT READY
  THEN Flag ON FOR 4 SECONDS
In the first example the first trigger starts the countdown timer on the flag and logs the incident. If a second trigger occurs 3 seconds after the first, the flag will still be on and nothing will be logged. If a third trigger occurs 6 seconds after the first the timer will have expired so the process will start again and a second event will be logged.

In the second example when the first trigger occurs the flag has not yet been turned on so the event is logged. The next block starts the countdown timer. When the second trigger occurs after 3 seconds the flag is still on so the event is not triggered. So for the behavior is the same but in this example the second block restarts the countdown timer a 4 seconds. Now when the third trip occurs the flag is still on, because it was restarted 3 seconds ago, and the third trip is not logged. In fact no further trips will be logged until there is at least a 4 second gap between trips.

This is free, does not require the purchase of any additional hardware and is fully configurable.

I hope this is helpful.
 
Thanks this was very helpful. I went with the first option. I don't want to let the logging ignore if the zone goes not ready over and over again. In other words striking the eye over and over will just ignore a constant obstruction.

Thanks again!
 
Back
Top