Documentation

Entity Gate

Gate entities

Library

Routing

Description

When the Operating mode parameter is set to Enable gate, this block represents a gate that is open whenever the control signal at the input port is positive, and closed whenever the signal is zero or negative. By definition, an open gate permits entity arrivals as long as the entities would be able to advance immediately to the next block, while a closed gate forbids entity arrivals. The input signal is a numerical signal of type double. Because the signal can remain positive for a time interval of arbitrary length, an enabled gate can remain open for a time interval of arbitrary length. The length can be zero or a positive number.

When the Operating mode parameter is set to Release gate, this block permits the arrival of one pending entity when a signal-based event or function call occurs; at all other times, the entity input port of the block is unavailable. By definition, the opening of the gate permits one pending entity to arrive if the entity is able to advance immediately to the next block.

When the Operating mode parameter is set to Selection gate, this block permits the arrival of pending entities whenever the signal at the control port matches the attributes of the pending entities, otherwise it prevents the arrival of pending entities.

No simulation time passes between the opening and subsequent closing of the gate. The gate opens and then closes in the same time instant. If no entity is already pending when the gate opens, then the gate closes without processing any entities.

The Open gate at simulation start parameter opens the gate at the start of simulation.

Parameters

Operating mode

Select the mode of operation of this gate. Select Enable gate to allow entity arrivals upon receiving a message with a positive value. Select Release gate to allow one pending entity arrival per message arrival. Select Selection gate to allow pending entity arrival with specified attribute .

Open gate at simulation start

Select this option to open the gate at the start of the simulation.

Introduced in R2016a

Was this topic helpful?