AfterUntil block

Requirements.TimeLocators.AfterUntil  ยท source

Icon of AfterUntil

Output is true, after rising edge of input 1 until the rising edge of input 2

Syntax

condition = AfterUntil(u1=...,u2=...).y;

Description

At a rising edge of Boolean input u1, output y = true until the Boolean input u2 has a rising edge. If input u1 = true at initialization, y = true.

Example

This block is demonstrated with the following example:

results in

simulation result

Inputs

NameTypeDescription
u1 inputBooleanBoolean input 1
u2 inputBooleanBoolean input 2

Components and variables

NameTypeDescription
yModelica.Blocks.Interfaces.BooleanOutput= true, after rising edge of u1 until rising edge of u2