Threshold returns true when input is above or below a setpoint with configurable deadband.
Test
Below are couple examples of how the threshold block works.
Example 1:
Setup with actAbove = true (meaning if input is above stpt):
in=11
sp=10
db=3
actAbove=true
output=true
if in=8
output=true
if in=5
output=false
has to go higher than 10 to be true again
...