Why am I unable to find the logged data from Scope block in the MATLAB workspace in R2019a?
71 views (last 30 days)
Show older comments
MathWorks Support Team
on 19 Apr 2019
Edited: MathWorks Support Team
on 17 Nov 2023
In R2019a, it seems that selecting "Log data to workspace" of the Scope block does not actually log the data to the MATLAB workspace as in old releases.
I have also tried using the To Workspace block and the behavior is the same. What setting has been changed in R2019a?
Accepted Answer
MathWorks Support Team
on 17 Nov 2023
Edited: MathWorks Support Team
on 17 Nov 2023
This behavior is expected in R2019a.
Starting from R2019a, the default setting of "Single simulation output" option has been changed from 'off' to 'on':
Therefore, Simulink returns all simulation outputs to MATLAB within a single SimulationOutput object, which include signal, state, output, DSM logging, and scope and toworkspace block logging. If not specified, the variable is named as out.
To get the outputs in separate variables as before, you need to uncheck this option.
0 Comments
More Answers (0)
See Also
Categories
Find more on Simulink Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!