Hysteresis

Transform Real to Boolean signal with Hysteresis

    Hysteresis

Library

Modelica/Blocks/Logical

Description

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

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_u

u

u

Structure

mo_u/fixed

fixed

Cell of scalars

true
false

mo_u/start

start

Cell of scalars

mo_y

y

y

Structure

mo_y/fixed

fixed

Cell of scalars

true
false

mo_y/start

start

Cell of scalars

Ports

NameTypeDescriptionIO TypeNumber

u

implicit

input

1

y

implicit

output

1