Filter löschen
Filter löschen

Access simulink model's return values in App Designer

1 Ansicht (letzte 30 Tage)
John F
John F am 10 Mär. 2022
Beantwortet: John F am 10 Mär. 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

Akzeptierte Antwort

John F
John F am 10 Mär. 2022
Use this when running the model:
simout = sim(model,'ReturnWorkspaceOutputs', 'on', 'SaveFormat', 'Structure');

Weitere Antworten (0)

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by