Hysteresis

Transform Real to Boolean signal with Hysteresis

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

This block transforms a Real input signal into a Boolean output signal:

  • When the output was false and the input becomes greater than parameter uHigh, the output switches to true.
  • When the output was true and the input becomes less than parameter uLow, the output switches to false.

The start value of the output is defined via parameter pre_y_start (= value of pre(y) at initial time). The default value of this parameter is false.

Parameters (3)

uLow

Value:

Type: Real

Description: if y=true and u<=uLow, switch to y=false

uHigh

Value:

Type: Real

Description: if y=false and u>=uHigh, switch to y=true

pre_y_start

Value: false

Type: Boolean

Description: Value of pre(y) at initial time

Connectors (2)

u

Type: RealInput

y

Type: BooleanOutput

Used in Examples (1)

TanksWithOverflow

Modelica.Fluid.Examples.Tanks

Two tanks connected with pipes at different heights