Hysteresis
Transform Real to Boolean signal with 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
Name | Label | Description | Data Type | Valid 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 |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_u | u | u | Structure | |
mo_u/fixed | fixed | Cell of scalars | true | |
mo_u/start | start | Cell of scalars | ||
mo_y | y | y | Structure | |
mo_y/fixed | fixed | Cell of scalars | true | |
mo_y/start | start | Cell of scalars |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
u | implicit | input | 1 | |
y | implicit | output | 1 |