Hysteresis

Transform Real to Boolean signal with Hysteresis

    Hysteresis

Library

Modelica/Blocks/Logical

Description

This block transforms a Real input signal into a Booleanoutput 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 parameterpre_y_start (= value of pre(y) at initial time).The default value of this parameter is false.

Parameters

Hysteresis_0

NameLabelDescriptionData TypeValid Values

mo_uLow

uLow

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

Scalar

mo_uHigh

uHigh

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

Scalar

mo_pre_y_start

pre_y_start

Value of pre(y) at initial time

Scalar

true
false

Hysteresis_1

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

u

implicit

input

1

y

implicit

output

1

See Also