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

1 次查看(过去 30 天)
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?

采纳的回答

MathWorks Support Team
编辑:MathWorks Support Team 2023-6-29
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/recordloggedworkspacedatainsimulationdatainspector.html

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Save Run-Time Data from Simulation 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by