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

TypeNameDefaultDescription
BooleanleftBoundaryIncludedtrueIf true, the left boundaries of the time periods are included
BooleanrightBoundaryIncludedtrueIf true, the right boundaries of the time periods are included

Connectors

TypeNameDefaultDescription
ETL.Connectors.Boolean4InputuOpening and closing events
ETL.Connectors.WhileInputtlMaster time period
ETL.Connectors.TimeLocatorOutputyVector of time periods

Components

TypeNameDefaultDescription
ETL.TimeLocators.Periodsperiods
Blocks.Logical4.bNot4not4_1