Entity Transport Delay

Introduce a delay in propagation of a SimEvents message

  • Library:
  • 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 (Simulink).

Ports

Input

expand all

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

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 (Simulink).

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, 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™.

Introduced in R2019b