Main Content

Event Source

Simulate and playback recorded task events

Since R2020b

  • Event Source block

Libraries:
SoC Blockset / Processor Testbench
C2000 Microcontroller Blockset / Scheduling
Embedded Coder Support Package for Infineon AURIX TC3x Microcontrollers / Test Bench Blocks
Embedded Coder Support Package for Infineon AURIX TC4x Microcontrollers / Test Bench Blocks

Description

The Event Source block, connected to the Task Manager block, enables you to simulate tasks events in your Simulink® model. Task timing data can be provided from the block mask, an external file, or from an input port driven by other model signals.

Ports

Input

expand all

Input data, specified as a numeric vector. The block converts this data into an event that corresponds to the rate of the input data. You can use this event to drive an event-driven task in the Task Manager block.

Dependencies

To enable this port, set the Input parameter to From input port.

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

Output

expand all

This port sends a task event signal that triggers the Task Manager block to execute the associated event-driven task.

Data Types: rteEvent

Parameters

expand all

Set the input data source for the block by selecting one of these values.

  • From dialog — Input a one-dimensional array of data by using a function. Specify this function for the Value parameter.

  • From input port — Input data and signals using input ports on the block.

  • From timeseries object — Input data and time values using a timeseries object that you created in MATLAB®. For more information see Time Series Objects and Collections.

Specify a discrete time interval, in seconds, at which the block outputs data.

Dependencies

To enable this parameter, set the Input parameter to From dialog.

Specify a timeseries object. This timeseries object provides the input data for the block. For more information about time series objects, see Time Series Objects and Collections.

Dependencies

To enable this parameter, set the Input parameter to From timeseries object.

Version History

Introduced in R2020b

See Also