Documentation

Entity Output Switch

Output entities

Library

Routing

Description

Note

This page is the block reference page for the Output Switch block introduced in R2016a. To see the documentation for the previous Output Switch block, see Output Switch (Obsolete).

The block allows you to select an output port for departure of an entity.

Parameters

Number of output ports

Specify the number of output ports.

Switching criterion

Choose the criterion for switching between output ports. Select First port that is not blocked to output the entity to the first unblocked port. Select Round robin to output entities in a round robin fashion among the output ports. Select From control port to introduce a control port that specifies the output port for entity departure. Select From attribute to specify an attribute that determines the output port. Select Equiprobable to randomly select an output port for entity departure.

Initial port selection

Specify the output port at the start of the simulation. This parameter is visible when Switching criterion is set to Round robin or From control port.

Switch Attribute name

Specify the attribute that determines the output port. This parameter is visible when Switching criterion is set to From attribute.

Seed

Specify the seed for the random number generator to determine the output port. This parameter is visible when Switching criterion is set to Equiprobable.

Introduced in R2016a

Was this topic helpful?