How to get Simulation Status correctly?
25 次查看(过去 30 天)
显示 更早的评论
Hello,
I was trying to get Simulation Status after i compile the model using ; get_param('myModel', 'SimulationStatus') yet even though my model is compiled(see that on the left bottom of the simulink), get_param('myModel', 'SimulationStatus') is return as 'paused'.
Is there any suggestions that you can give me?
Best Regards
0 个评论
回答(1 个)
Fangjun Jiang
2020-10-20
Use set_param('vdp','SimulationCommand','continue') to change the simulation status, other options are 'start', 'pause','stop'.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 General Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!