Effacer les filtres
Effacer les filtres

Access simulink model's return values in App Designer

2 vues (au cours des 30 derniers jours)
John F
John F le 10 Mar 2022
Réponse apportée : John F le 10 Mar 2022
I have a Simulink model that when run either from the Simulink model or the Command Window returns some variables to the workspace. However, this doesn't happen when I run the model from the App Designer. I would like to have access to these variables in the App.
Note: simout only returns the time array and I can't/don't want to modify the model in any way

Réponse acceptée

John F
John F le 10 Mar 2022
Use this when running the model:
simout = sim(model,'ReturnWorkspaceOutputs', 'on', 'SaveFormat', 'Structure');

Plus de réponses (0)

Catégories

En savoir plus sur Modeling dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by