After block

Requirements.TimeLocators.After  ยท source

Icon of After

Output is true, after first rising edge of input

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

Inputs

NameTypeDescription
u inputBooleanBoolean input

Components and variables

NameTypeDescription
yModelica.Blocks.Interfaces.BooleanOutput= true, after first rising edge of u