Signal Logging to a File
Logging signals to a file saves data to a variable in your MATLAB® workspace, and then saves that data to a MAT-file. You can use MATLAB functions for data analysis and MATLAB plotting functions for visualization on the data in the MAT-file.
The steps in this process are:
If your model contains Outport
blocks, you cannot save signal data
in Run in Kernel mode. Simulink® supports signal logging to a file in Connected IO
mode or accelerator mode only, when Simulink runs the simulation algorithm.
Tip
In Run in Kernel mode, do not enter or select parameters on
the Data I/O tab in the Configuration Parameters dialog box.
Instead, add a Scope
block to your Simulink model and use it to log signal data for data archiving.