Main Content

Entity Transport Delay

Introduce a delay in propagation of a SimEvents message

  • Entity Transport Delay block

Libraries:
Simulink / Continuous
SimEvents

Description

The Entity Transport Delay block delays an entity for a period of time, named transport delay. The first input is the entity that is transported from point A to point B on a constant-length moving surface whose speed changes over time. The value from the second input is the instantaneous delay. The speed of the surface is the reciprocal of instantaneous delay. The product of instantaneous delay and the speed is 1.

The block calculates the implemented transport delay by the distance-speed-time relationship, where the surface length (distance) is equal to the integral of the variable surface speed over the duration of the transport delay (time). For more information about this calculation, see Variable Transport Delay.

The Entity Transport Delay block connects SimEvents® to Simulink® using the input from a Simulink signal and computing the transport delay as a continuous process, and applying this delay to an entity in a discrete-event process. For an example that uses the Entity Transport Delay block, see Modeling Cyber-Physical Systems.

Examples

Ports

Input

expand all

SimEvents entity or message. For more information on entities in SimEvents, see Entities in a SimEvents Model.

This port does not have direct feedthrough.

Instantaneous delay in the transport of the SimEvents entity. ti is the reciprocal of the speed of the entity. For more information on the calculation of instantaneous delay, see Variable Transport Delay.

This port has direct feedthrough.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | bus

Output

expand all

SimEvents entity with the instantaneous delay ti applied to it.

Secondary output signal of the block, which displays the number of entities processed in a time step.

Dependencies

To enable this port, enable the Output number of entities in block, n parameter

Data Types: double

Parameters

expand all

Specify capacity to accept entities to be delayed.

Programmatic Use

Block Parameter: Capacity
Type: character vector
Values: 'inf' | real scalar
Default: 'inf'

Number of entities present in the block that are being delayed.

Programmatic Use

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

Block Characteristics

Data Types

Boolean | bus | double | enumerated | fixed point | integer | single

Direct Feedthrough

no

Multidimensional Signals

yes

Variable-Size Signals

no

Zero-Crossing Detection

yes

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2019b