Every block
Requirements.TimeLocators.Every
ยท source
Output is true, during every interval for a defined duration
Syntax
condition = Every(interval=..., duration=...).y;
Description
Output y = true, after every interval seconds for duration seconds. Otherwise y = false. The periodic interval starts at time = 0s.
Example
This block is demonstrated with the following example:
results in
![]() | |
| simulation result |
Parameters
| Name | Type | Description |
|---|---|---|
interval parameter | SI.Time | Length of interval |
duration parameter | SI.Time | Duration within interval (< interval) |
Components and variables
| Name | Type | Description |
|---|---|---|
y | Modelica.Blocks.Interfaces.BooleanOutput | = true, during every interval for defined duration |

