run simulink model from visual studio GUI

5 次查看(过去 30 天)
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 个评论
Titus Edelhofer
Titus Edelhofer 2011-10-17
Take a look at
http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer

请先登录,再进行评论。

采纳的回答

Kaustubha Govind
Kaustubha Govind 2011-10-17
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 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by