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

3 visualizaciones (últimos 30 días)
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?

Respuestas (1)

Chaitanya Mallela
Chaitanya Mallela el 24 de Dic. de 2020
Editada: Chaitanya Mallela el 24 de Dic. de 2020
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.

Categorías

Más información sobre Simulink Functions en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by