IO Data Source
Play back recorded data
Libraries:
SoC Blockset /
I/O Data Source and Sink
Description
The IO Data Source block enables you to import recorded hardware IO data and play it back in your Simulink® model. The block converts the input data into a message signal that you can give as input to the TCP Read, UDP Read, Stream Read, or Register Read blocks, depending on the device type you choose. The playback of hardware IO data in your Simulink model helps you develop models with better accuracy than models developed by using randomly generated data during simulation.
When you develop models that use real hardware IO data during deployment, you can choose
to use randomly generated synthetic data as hardware IO data in simulation. As physical
hardware data accounts for various effects like data loss, time delay, and so on. If you use
synthetic data as hardware IO data in simulation for such models, it leads to unexpected
results when you deploy it in the hardware board. To evaluate and verify such models, using
real hardware IO data during simulation is recommended. For more information on how to record
hardware IO data and save it to your host computer, see the DataRecorder
object.
Note
If you have a IO Data Source block with Input set to
From file
, associated with a
Timer-driven
Task Manager block in
your model and you plan to use a fixed-step solver, then enter a step size value less than
the value set for the Period parameter in the Task Manager block.
For example, suppose the value of Period specified in the Task Manager block is
0.1
, then choose a fixed-step size less than
0.1
.
Ports
Input
Output
Parameters
Extended Capabilities
Version History
Introduced in R2019a
See Also
IO Data Sink | Task Manager | TCP Read | UDP Read | Stream Read | Register Read | DataRecorder