blockChangingEdge

Output y is true, if the input u has either a rising or a falling edge and otherwise it is false (y=change(u))

Extends from Interfaces.PartialBooleanSISO (Partial block with a BooleanInput and a BooleanOutput signal).

Information

A changing edge, i.e., either rising or falling, of the Boolean input u results in y = true at this time instant. At all other time instants, y = false.

Parameters

TypeNameDefaultDescription
Booleanpre_u_startfalseValue of pre(u) at initial time

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanOutputy (from PartialBooleanSISO)
Modelica.Blocks.Interfaces.BooleanInputu (from PartialBooleanSISO)