Parameters

Set the two limits, the hysteresis width and the initial output. The hysteresis width must be smaller than the distance between the limits.

Try it

Move the input slowly up and down. The output switches at the limits and only returns to 0 once the input has moved back by the hysteresis width.

Output

Changing a parameter restarts the controller from the initial output.

Output 1, from the upper limit Output 0 Output -1, from the lower limit Current input and output