Entity Gate
Gate entities
Libraries:
SimEvents
Description
The Entity Gate block controls when pending entities can advance in the model.
The Operating mode parameter specifies how the pending entities advance through the gate.
Enable gate
— opens and allows entities to advance whenever the control port receives an anonymous entity with a positive value, and closes whenever it has zero or a negative value. For more information, see Use Queue Event Actions to Model a Storage Tank.Release gate
— allows one pending entity to advance for each anonymous entity or message that arrives on the control port. At all other times, the entity input port of the block is unavailable.Selection gate
— allows entities to advance whenever the anonymous entity value from the control port matches the attributes of the pending entities.
Use the Entity Gate block to control the flow of entities on the entity path. Use the Entity Output Switch block to select an output port for the departure of an entity among multiple entity output ports. For more information, see Route Vehicles Using an Entity Output Switch Block.
Examples
Ports
Input
Output
Parameters
Version History
Introduced in R2016a