blockChange
Output whether the Integer input changes values, increases or decreases
Information
Block that evaluates the integer input u to check if its value
changes.
-
When the input
uchanges, the outputywill betrue, otherwise it will befalse. -
When the input
uincreases, the outputupwill betrue, otherwise it will befalse. -
When the input
udecreases, the outputdownwill betrue, otherwise it will befalse.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | pre_u_start | 0 | Start value of pre(u) at initial time |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.IntegerInput | u | Integer to be monitored for a change in value | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput | y | Output that is true when the input changes its value | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput | up | Output that is true when the input increased its value | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput | down | Output that is true when the input decreased its value |
Revisions
-
May 6, 2026, by Antoine Gautier:
Replaced initial equation with start attribute on input. This is for Buildings, issue 4581. -
May 3, 2022, by Michael Wetter:
Renamed parametery_starttopre_u_start.
This is for Buildings, issue 2990. -
January 26, 2021, by Michael Wetter:
Changed initialization ofpre(u)to use the initial value of the input rather than0.
This is for Buildings, issue 2294. -
July 18, 2018, by Michael Wetter:
Revised model and icon. -
July 13, 2018, by Jianjun Hu:
First implementation, based on the implementation of the Modelica Standard Library.