Until model

Requirements.Examples.Elementary.TimeLocators.Until  ยท source

Icon of Until

Example for Until (output is true, until first rising edge of input)

Extends Modelica.Icons.Example

Using time locator block Until as

results in

simulation result

Two Until blocks receive Boolean pulses with a period of 2 s through their input u: pulse1 rises first at 0 s, pulse2 at 3 s. The output of until1 and until2 is true from the start of the simulation until the first rising edge of the respective input and false afterwards, whatever the input does later. Since pulse1 rises at the start time, until1 shows how the block treats an edge at the initial time.

Components and variables

NameTypeDescription
pulse1Modelica.Blocks.Sources.BooleanPulseBoolean pulse with period 2 s, first rising edge at 0 s
pulse2Modelica.Blocks.Sources.BooleanPulseBoolean pulse with period 2 s, first rising edge at 3 s
until1Requirements.TimeLocators.UntilTrue until the first rising edge of pulse1
until2Requirements.TimeLocators.UntilTrue until the first rising edge of pulse2