- Example: Log Real-Time Signals by Using the Simulation Data Inspector
- Video: File Logging in Simulink Real-Time

Prepare model for file logging


Start and stop logging during simulation

Import file logs to host computer
- MATLAB API: Use the tg.FileLog.import command in a script or directly from the MATLAB Command Window.
- 'Import File Log' dialog: Open the dialog by pressing the corresponding button in SLRT Explorer, in the Real-Time tab of your model, or in your custom SLRT app via an ImportFileLogButton (R2023b+). You can also use the openImportDialog command to launch the dialog programmatically.

View, store, and post-process logged data

