Problems to export Scope Data variable to MATLAB workspace via timer function

1 次查看(过去 30 天)
I am using a timer function to update variables created by a Simulink simulation in my workspace .
However when called upon by the timer function, the Scope Data is not getting exported into the MATLAB workspace. When I run the Simulink-Simulation using the run-button, however, it works. Did anyone have a similar problem and found a solution?

回答(1 个)

Chaitanya Mallela
Chaitanya Mallela 2020-12-24
编辑:Chaitanya Mallela 2020-12-24
To export the calculated variables into the workspace, consider returning the output from sim function to load into the MATLAB workspace and return this output from the timer functions.

类别

Help CenterFile Exchange 中查找有关 Simulink Functions 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by