Hysteresis
Transform Real to Boolean signal with 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
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__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' | |
mo__modifiers/value | Value |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
u | implicit | input | 1 | |
y | implicit | output | 1 |