Can I interact with Simulink models from App Designer in R2017b?
10 views (last 30 days)
Show older comments
MathWorks Support Team
on 18 Feb 2020
Answered: MathWorks Support Team
on 18 Feb 2020
Is it possible to interact with Simulink models from App Designer?
Accepted Answer
MathWorks Support Team
on 18 Feb 2020
It is possible to act on Simulink models from App Designer in a similar fashion to GUIDE.
Please find attached a simple App 'MW_app' where it is possible to open, simulate, close and increase the value of the gain in the Simulink model 'vdp'.
The App has been developed in the following way:
1. Open App Designer:
>> appdesigner
2. Drag and rename four push buttons.
3. Right-click on each respective push button > Callbacks > Add pushed function callback > Write your own code
4. Save the app
You can then use the App to act on the Simulink model 'vdp'. If you wish to modify the App or see its Code View, please type the following line at the MATLAB Command Window:
>> appdesigner MW_app
To create a more complex app that takes in data from a running simulation, see the following MATLAB Answers Post:
0 Comments
More Answers (0)
See Also
Categories
Find more on Simulink Environment Customization 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!