Release Gate - Permit one pending entity to arrive when event occurs

Library

Gates

Description

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

No simulation time passes between the opening and subsequent closing of the gate; that is, 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 upon parameter determines the type of event that opens the gate. Possible types are

For more details, see Opening a Gate Instantaneously.

Ports

Entity Input Ports

LabelDescription
INPort for arriving entities.

Signal Input Ports

LabelDescription
trTrigger signal that indicates when to open the gate. This port appears only if you set Open gate upon to Trigger from port tr.
vcControl signal whose numerical changes indicate when to open the gate. This port appears only if you set Open gate upon to Change in signal from port vc.
fcnFunction-call signal that indicates when to open the gate. This port appears only if you set Open gate upon to Function call from port fcn.

Entity Output Ports

LabelDescription
OUTPort for departing entities.

Signal Output Ports

LabelDescriptionTime of Update When Statistic Is On
#dNumber of entities that have departed from this block since the start of the simulation.After entity departure

The initial output value, which is in effect from the start of the simulation until the first update by the block, is 0.

Dialog Box

Release Gate Tab

Open gate upon

Determines the type of event that causes the gate to open instantaneously.

Trigger type

Determines whether rising, falling, or either type of trigger edge causes the gate to open. This field appears only if you set Open gate upon to Trigger from port tr.

Type of change in signal value

Determines whether rising, falling, or either type of value change causes the gate to open. This field appears only if you set Open gate upon to Change in signal from port vc.

Resolve simultaneous signal updates according to event priority

Select this option to explicitly prioritize the gate-opening event, relative to other simultaneous events in the simulation. If you do not select this option, the event has priority SYS1 on the event calendar. For details, see Choosing How to Resolve Simultaneous Signal Updates.

Event priority

The priority of the gate-opening event, relative to other simultaneous events in the simulation. For details, see Specifying Event Priorities to Resolve Simultaneous Signal Updates. This field appears only if you select Resolve simultaneous signal updates according to event priority.

Statistics Tab

These parameters determine whether certain ports produce data throughout the simulation, produce data only when you stop or pause the simulation, or are omitted from the block. For descriptions of the affected ports, see the "Signal Output Ports" table above.

Number of entities departed

Controls the presence and behavior of the signal output port labeled #d.

Examples

See Also

Enabled Gate

Regulating Arrivals Using Gates

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS