blockAfter

Output is true, after first rising edge of input

Information

Syntax

condition = After(u=...).y;

Description

At the first rising edge of Boolean input u, output y = true (and remains true). If input u = true at initialization, y = true always.

Example

This block is demonstrated with the following example:

results in

simulation result

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanOutputy= true, after first rising edge of u

Components

TypeNameDefaultDescription
BooleanuBoolean input