- 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.
Why does the output of my simulation always stream to the Simulation Data Inspector (SDI) in R2017b and later?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 22 Jan. 2022
Bearbeitet: MathWorks Support Team
am 29 Jun. 2023
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?
Akzeptierte Antwort
MathWorks Support Team
am 29 Jun. 2023
Bearbeitet: MathWorks Support Team
am 29 Jun. 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
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Save Run-Time Data from Simulation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!