run simulink model from visual studio GUI

2 views (last 30 days)
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
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

Sign in to comment.

Accepted Answer

Kaustubha Govind
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')

More Answers (0)

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!