blockEvery
Output is true, during every interval for a defined duration
Information
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
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Time | interval | Length of interval | |
| Modelica.Units.SI.Time | duration | Duration within interval (< interval) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.BooleanOutput | y | = true, during every interval for defined duration |
