Trigger If Input Is Above Threshold for a Specified Time
Matt Hanks
Posted on 07.06.2019 21:31
Is there a way to set a trigger to 1 if the input is higher than a limit for a specified duration? I did this before using multiple math operations like below, but is there an easier way?
Threshold = Input>100
Timer = (prev+Threshold)/sr * Threshold
Trigger = Timer>5
Using the example formulas above, I can make the "Trigger" only go to one if input is above 100 for over 5 seconds.
I could nest all that in one Math formula, but I had issues last year where if I put too much into one formula it would not calculate.
Matt Hanks
Posted on 07.06.2019 23:14
I noticed a type in my Timer equation. It should be (prev + Threshold/sr)*Threshold.
Eva Kalšek
Customer Support Engineer
Customer Support Engineer
Posted on 14.06.2019 14:13
Attached files:
Dear Matt,
please check the following setup file and let us know if this is a good solution for your needs.
Regards
Attached files:
Login
to reply to this topic. If you don't have account yet, you
can
signup for free account
.