Can I interact with Simulink models from App Designer in R2017b?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 18 Fév 2020
Réponse apportée : MathWorks Support Team
le 18 Fév 2020
Is it possible to interact with Simulink models from App Designer?
Réponse acceptée
MathWorks Support Team
le 18 Fév 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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Simulink Environment Customization dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!