Instead of logging the simulation data for the whole model, you can log data just for the selected blocks.
Set the logging configuration parameter to enable simulation data logging on a block-by-block basis.
In the model window, from the top menu bar, select Simulation > Model
Configuration Parameters. In the Configuration Parameters
dialog box, in the left pane, select Simscape,
then set the Log simulation data parameter to
local settings. Click OK.
Select the blocks in your model. You can do this before or after setting the logging configuration parameter.
For each block that you want to select for data logging, right-click the block. From the context menu, select Simscape > Log simulation data. A check mark appears in front of the Log simulation data option.
Simulate the model. When the simulation is done, the simulation data log contains only the data from the selected blocks.
To stop logging data for a previously selected block, right-click it and select Simscape > Log simulation data again to remove the check mark.
If you set the Log simulation data parameter
All, the simulation log will contain
data from the whole model, regardless of the block selections. Setting
the Log simulation data parameter to
data logging for the whole model.