blockHysteresis_withDelay
Transform Real to Boolean signal with Hysteresis
Extends from Modelica.Blocks.Icons.PartialBooleanBlock (Basic graphical layout of logical block).
Information
This block transforms a Real input signal u into a Boolean output signal y considering also a dead time:
- 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
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | offsetInput | false | |
| Real | uLow | If y=true and u<uLow, switch to y=false | |
| Real | uHigh | If y=false and u>uHigh, switch to y=true | |
| Modelica.Units.SI.Time | delay | 1 | Delay time of boolean output signal |
| Real | offsetValue |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | u | ||
| Modelica.Blocks.Interfaces.RealInput | offset | ||
| Modelica.Blocks.Interfaces.RealOutput | offsetInternal | ||
| Modelica.Blocks.Interfaces.BooleanOutput | y |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | uLow_offset | uLow + offsetInternal | |
| Real | uHigh_offset | uHigh + offsetInternal | |
| Modelica.Blocks.Logical.LogicalDelay | logicalDelay |