run simulink model from visual studio GUI
2 views (last 30 days)
Show older comments
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 Comment
Titus Edelhofer
on 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
Accepted Answer
Kaustubha Govind
on 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 Comments
More Answers (0)
See Also
Categories
Find more on Application Deployment 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!