Hysteresis

Switch output between two constants with hysteresis

Library

Blocks/Nonlinear

Description

This block transforms an input signal u (left) into an output signal y (right) which switches between two constants yOn and yOff with hysteresis:

  * When the output was yOff and the input becomes greater than uOn, the output switches to yOn.

  * When the output was yOn and the input becomes less than uOff, the output switches to yOff.

The start value of the output is defined by parameter y_start.

Parameters

    Hysteresis_0

  • uOn [-] : Switch on when u >= uOn (uOn): Scalar.
  • uOff [-] : Switch off when u <= uOff (uOff): Scalar.
  • yOn [-] : Output when switched on (yOn): Scalar.
  • yOff [-] : Output when switched off (yOff): Scalar.
  • y_start [-] : Start value of output (y_start): Scalar.

Ports

  • Port 1 at left position: implicit input fixedport numbered 1.
  • Port 1 at right position: implicit output fixedport numbered 1.

See Also