Signal Logging
To log signal values and times, mark signals for logging with the Simulation Data Inspector or add a File Log to your model. See Signal Logging and Streaming Basics.
A File Log block collects signal data on the target computer that is sent to the development computer after each simulation run. Or, if the target computer is not connected to the development computer, you can upload the data to the development computer when you connect to the target computer.
Apps
Simulink Real-Time | Generate real-time applications for simulations that run on a target computer and interface with I/O devices in the target computer (Since R2020b) |
Simulink Real-Time Explorer | Interact with target computer and real-time application running on target computer (Since R2020b) |
Simulink Real-Time TET Monitor | Monitor task execution time for the real-time application running on target computer (Since R2020b) |
Simulink Real-Time App Generator | Generate instrument panel app to interact with target computer and real-time application running on target computer (Since R2022a) |
Tools
Simulation Data Inspector | Inspect and compare data and simulation results to validate and iterate model designs |
Functions
slrtExplorer | Open Simulink Real-Time explorer and interact with target computers and real-time applications (Since R2020b) |
slrtTETMonitor | Open Simulink Real-Time task execution time (TET) monitor (Since R2020b) |
slrtAppGenerator | Generate instrument panel app to interact with target computer and real-time application running on target computer (Since R2022a) |
discard | Delete file log data from target computer (Since R2020b) |
import | Import file log data from target computer (Since R2020b) |
list | Get information about available file logs of signal data (Since R2020b) |
openImportDialog | Get information about available file logs of signal data (Since R2023b) |
slrealtime.exportRun | Access data for Simulation Data Inspector run (Since R2023a) |
slrealtime.fileLogImport | After copying file logs from target to development computer, import file logs into Simulation Data Inspector (Since R2021a) |
slrealtime.fileLogList | After copying file logs from target to development computer, list available file logs for import into Simulation Data Inspector (Since R2021a) |
startRecording | Starts signal data live streaming and File Log logging (Since R2022a) |
stopRecording | Stops signal data live streaming and File Log logging (Since R2022a) |
Blocks
File Log | Write signal data file log on target computer (Since R2020b) |
Enable File Log | Enable or disable file logging of signals on target computer (Since R2020b) |
Scope | Display signals generated during simulation |
Topics
Background
- Signal Logging and Streaming Basics
Acquire signal data while running a real-time application and transfer the data to the development computer for analysis. - Parameter Tuning and Data Logging
This example shows how to use real-time parameter tuning and data logging with Simulink® Real-Time™. - Display and Filter Hierarchical Signals and Parameters
Find and view signals and parameters with hierarchical path information.
Data Logging with the Simulation Data Inspector
- Data Logging with Simulation Data Inspector (SDI)
This example shows how to use a Simulink® Real-Time™ log of signal data and the Simulation Data Inspector. Signals are logged during model execution.
Limitations
- Troubleshoot Signals Not Accessible by Name
Investigate issues for some signal types prevent monitoring, tracing, or logging. - Internationalization Issues
Learn about Simulink® Real-Time™ support for internationalization.
Troubleshooting
Troubleshooting in Simulink Real-Time
Troubleshoot problems that you encounter while using the Simulink Real-Time product