Logging signals to the workspace saves data to a variable in your MATLAB® base workspace. You can use MATLAB functions for data analysis and MATLAB plotting functions for visualization. You can save data to a variable during a simulation or during an execution.
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 with
Outport blocks in
Connected IO mode or accelerator modes only, when Simulink runs the simulation algorithm.
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 to log signal data.