start simulation of simulink with mfile~~
古いコメントを表示
i m trying to start the matlab panorama demo with command line. using this command
set_param(Panorama,'start')
sim(Panorama,inf)
but the video viewer and the panorama GUI is pop out~~~ but it don't run the result~~ Anyone here can help ~~~ thx ~~
回答 (1 件)
Kaustubha Govind
2012 年 3 月 12 日
0 投票
Is Panorama a string variable containing the name of the model? Also, not sure where you got this command from: set_param(Panorama,'start'), the command to start a simulation is: set_param('modelname','SimulationCommand', 'start'). You need to use set_param('modelname','SimulationCommand', 'stop') to stop the simulation.
However, you can use the sim command to start and stop simulation automatically. You don't need to use the 'Start' and 'Stop' commands if you are using this.
Do you see any error in the MATLAB command window when you follow these directions?
4 件のコメント
Chong Keat
2012 年 3 月 12 日
Kaustubha Govind
2012 年 3 月 13 日
As I mentioned, you need to enter the model name as a string:
set_param('Panorama', 'SimulationCommand', 'start')
Note the single quotes around the model name.
Chong Keat
2012 年 3 月 14 日
Kaustubha Govind
2012 年 3 月 14 日
The model needs to be open.
カテゴリ
ヘルプ センター および File Exchange で Computer Vision Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!