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

1 visualización (últimos 30 días)
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?

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 29 de Jun. de 2023
Editada: MathWorks Support Team el 29 de Jun. de 2023
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

Más respuestas (0)

Categorías

Más información sobre Save Run-Time Data from Simulation en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by