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 Modelica.Blocks.Interfaces.PartialBooleanSISO_small (Partial block with a BooleanInput and a BooleanOutput signal and a small block icon).
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.
The usage is demonstrated, e.g., in example Modelica.Blocks.Examples.BooleanNetwork1.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | pre_u_start | false | Value of pre(u) at initial time |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.BooleanInput | u (from PartialBooleanSISO_small) | Boolean input signal | |
| Modelica.Blocks.Interfaces.BooleanOutput | y (from PartialBooleanSISO_small) | Boolean output signal |