blockHysteresis
Transform Real to Boolean signal with Hysteresis
Information
Block that transforms a Real input signal into a Boolean
output signal:
- When the output was
falseand the input becomes greater than the parameteruHigh, the output switches totrue. - When the output was
trueand the input becomes less than the parameteruLow, the output switches tofalse.
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 |
|---|---|---|---|
| Real | uLow | if y=true and u<uLow, switch to y=false | |
| Real | uHigh | if y=false and u>uHigh, switch to y=true | |
| Boolean | pre_y_start | false | Value of pre(y) at initial time |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.RealInput | u | Input to be compared against hysteresis values | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput | y | Output value of comparison |
Revisions
-
October 3, 2017, by Michael Wetter:
Removed start value for parameters, and moved assertion toinitial equation. -
January 3, 2017, by Michael Wetter:
First implementation, based on the implementation of the Modelica Standard Library.