blockDuring
Information
Syntax
y = During(u = Boolean [, tl = master_time_period]);
Description
Returns the time periods that start when the Boolean on u becomes true and end when the Boolean on u becomes false. The opening and the closing events are included or excluded according to the values of the parameters leftBoundaryIncluded and rightBoundaryIncluded. The time periods are truncated by the master_time_period if provided on tl.
For more information, refer to the Periods block.
The Master block can be used to specify the same master period to all time periods of the same model.
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 |
|---|---|---|---|
| ETL.Connectors.Boolean4Input | u | Opening and closing events | |
| ETL.Connectors.WhileInput | tl | Master time period | |
| ETL.Connectors.TimeLocatorOutput | y | Vector of time periods |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| ETL.TimeLocators.Periods | periods | ||
| Blocks.Logical4.bNot4 | not4_1 |