Main Content

Entity Terminator

Terminate entities

  • Entity Terminator block

Libraries:
SimEvents

Description

The Entity Terminator block accepts and destroys entities. Use this block to represent the entity departure from the model.

To customize actions when entities enter, use MATLAB® code in the Entry action field of the Event actions tab. See Events and Event Actions, for more information.

Examples

Ports

Input

expand all

Input entity port for entities entering the terminator.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | Boolean | enumerated | bus | fixed point

Output

expand all

Number of entities that have arrived at the block.

Dependencies

To enable this port, click the Statistics tab and select the box labeled Number of entities arrived, a.

Data Types: double

Parameters

expand all

Specify the behavior of the entity in certain events. Define the behavior in the Event action parameter. The Entry action is called just after the entity entry to the block.

Programmatic Use

Block Parameter: EntryAction
Type: character vector
Values: MATLAB code
Default: ''

Number of entities that have arrived at the block.

Programmatic Use

Block Parameter: NumberEntitiesArrived
Type: character vector
Values: 'on' | 'off'
Default: 'off'

Version History

Introduced in R2016a