blockChange
Output y is true, if the input u has a rising or falling edge (y = change(u))
Information
Block that outputs true if the Boolean input has either a rising edge
from false to true or a falling edge from
true to false.
Otherwise the output is false.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | pre_u_start | false | Start value of pre(u) at initial time |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput | u | Input to be monitored for a change | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput | y | Output with true when the input changes |
Revisions
-
May 6, 2026, by Antoine Gautier:
Replaced initial equation with start attribute on input. This is for Buildings, issue 4581. -
January 3, 2017, by Michael Wetter:
First implementation, based on the implementation of the Modelica Standard Library.