blockRisingEdge

Output y is true, if the input u has a rising edge, otherwise it is false (y = edge(u))

Extends from Modelica.Blocks.Interfaces.PartialBooleanSISO_small (Partial block with a BooleanInput and a BooleanOutput signal and a small block icon).

Information

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

The usage is demonstrated, e.g., in example Modelica.Blocks.Examples.BooleanNetwork1.

Parameters

TypeNameDefaultDescription
Booleanpre_u_startfalseValue of pre(u) at initial time

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanInputu (from PartialBooleanSISO_small)Boolean input signal
Modelica.Blocks.Interfaces.BooleanOutputy (from PartialBooleanSISO_small)Boolean output signal