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

TypeNameDefaultDescription
Booleanpre_u_startfalseStart value of pre(u) at initial time

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.BooleanInputuInput to be monitored for a change
Buildings.Controls.OBC.CDL.Interfaces.BooleanOutputyOutput 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.