blockWhile
While time locator
Information
Syntax
y = While(u = opening_or_closing_event [, tl = master_time_period]);
Description
The While block creates a master time period which is a special case of a time locator with no overlapping time periods. The While block truncates the time periods created with the Periods block or the While block whose tl inputs are connected to the output y.
Opening and closing events are respectively delivered on input u when u becomes respectively true and false.
While can only be used as the master time locator of a Periods block or another While block.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | leftBoundaryIncluded | true | If true, the left boundaries of the time periods are included |
| Boolean | rightBoundaryIncluded | true | If true, the right boundaries of the time periods are included |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Connectors.WhileOutput | y | Vector of time periods | |
| Connectors.Boolean4Input | u | Alternating opening and closing events | |
| Connectors.WhileInput | tl |