Until model
Requirements.Examples.Elementary.TimeLocators.Until
ยท source
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
| Name | Type | Description |
|---|---|---|
pulse1 | Modelica.Blocks.Sources.BooleanPulse | Boolean pulse with period 2 s, first rising edge at 0 s |
pulse2 | Modelica.Blocks.Sources.BooleanPulse | Boolean pulse with period 2 s, first rising edge at 3 s |
until1 | Requirements.TimeLocators.Until | True until the first rising edge of pulse1 |
until2 | Requirements.TimeLocators.Until | True until the first rising edge of pulse2 |

