run simulink model from visual studio GUI
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Create an exe by name Test.exe using VC++ Form Application
Place 3 buttons on it naming Start, Stop, Pause
The user should be able to Start,Stop,Pause simulation Time of a model(Ex:Display.mdl)using these buttons.
If needed, you can include the path of Display.mdl in Test.exe
1 commentaire
Titus Edelhofer
le 17 Oct 2011
Take a look at
http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
Réponse acceptée
Kaustubha Govind
le 17 Oct 2011
You can start MATLAB as a COM server and execute the relevant MATLAB commands from your VC++ application:
set_param('Display', 'SimulationCommand', 'start')
set_param('Display', 'SimulationCommand', 'stop')
set_param('Display', 'SimulationCommand', 'pause')
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur MATLAB Compiler 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!