Every model
Requirements.Examples.Elementary.TimeLocators.Every
ยท source
Example for Every (output is true, during every interval for a defined duration)
Extends Modelica.Icons.Example
Using time locator block Every as
results in
![]() | |
| simulation result |
The block every is parameterized with interval = 2 s and duration = 0.5 s, so its
Boolean output is true for the first 0.5 s of every 2 s interval: on [0, 0.5), [2, 2.5), [4, 4.5) s and so on up to the
stop time of 11 s. The block has no input; such a time locator is typically connected to the condition
input of a check block, so that a requirement is only evaluated in these periodically recurring time windows.
Components and variables
| Name | Type | Description |
|---|---|---|
every | Requirements.TimeLocators.Every | True for 0.5 s at the start of every 2 s interval |

