Event Source
Libraries:
SoC Blockset / I/O Data Source and Sink
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
data — Input data
numeric vector
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
event — Task event signal
scalar
This port sends a task event signal that triggers the Task Manager block to execute the associated event-driven task.
Data Types: rteEvent
Parameters
Input — Source of input data
From dialog
(default) | From input port
| From timeseries object
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.
Sample time — Time interval of sampling
-1
(default) | nonnegative scalar
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
.
Object name — Name of timeseries object
[]
(default) | timeseries object
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
Comando de MATLAB
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)