Why does the output of my simulation always stream to the Simulation Data Inspector (SDI) in R2017b and later?

8 views (last 30 days)
I would like to record the outputs of my model in the workspace. Therefore, I navigated to Data Import/Export > Save to Workspace or file section in my model's Configuration Parameters and enabled logging for Output data. However, when I choose 'Dataset' format, I noticed that the output data always gets sent to SDI as well as the workspace.
Is this the expected behavior, and is there a way to avoid this?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 24 Jan 2022
This is the expected behavior when using the 'Dataset' format and it is documented here: https://www.mathworks.com/help/simulink/ug/populate-sdi-with-your-data.html
  • Since R2017b, when you log Output data using the 'Dataset' format, the output data automatically streams to the Simulation Data Inspector.
  • Since R2020b, the same applies to States data logged using the 'Dataset' format.
To avoid this behavior, log your data in 'Structure', 'Structure with time', or 'Array' format. In this case, you can use the "Record logged workspace data in Simulation Data Inspector" parameter to specify whether you would like to send the data to the Simulation Data Inspector after simulation pauses or completes: https://www.mathworks.com/help/simulink/gui/record-logged-workspace-data-in-simulation-data-inspector.html

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!