
Why does the "To Workspace" block log data to a variable called "out" starting from R2019a?
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 24 Nov. 2020
Bearbeitet: MathWorks Support Team
am 30 Aug. 2024
When I add a To Workspace block to my model in R2019a, the data is always logged into a variable called "out", which is a Simulink.SimulationOutput object.
In previous releases, it would just directly log the data to a timeseries "simout" by default. How can I get this old behavior?
Akzeptierte Antwort
MathWorks Support Team
am 30 Aug. 2024
Bearbeitet: MathWorks Support Team
am 30 Aug. 2024
Whether the "To Workspace" block logs data to "out.simout" or just "simout" (or whichever variable name that you specified) depends on whether the model parameter "Single Simulation Output" is enabled or not:

Since R2019a, the default setting is that Single Simulation Output is enabled. Before that, it used to be disabled by default. Please run the below command in the command window of installed MATLAB R2019a version to get release notes where this has been documented:
>> web(fullfile(docroot, 'simulink/release-notes.html'))
To change this behavior, you can simply disable the parameter as shown in the panel above, or by running the following command:
>> set_param(gcs,'ReturnWorkspaceOutputs',off)
Please follow the below link to search for the required information regarding the current release:
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Logging 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!