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

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
Connectors.WhileOutputyVector of time periods
Connectors.Boolean4InputuAlternating opening and closing events
Connectors.WhileInputtl