How to get Simulation Status correctly?

26 ビュー (過去 30 日間)
metehan akinci
metehan akinci 2020 年 10 月 20 日
回答済み: Fangjun Jiang 2020 年 10 月 20 日
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

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2020 年 10 月 20 日
Use set_param('vdp','SimulationCommand','continue') to change the simulation status, other options are 'start', 'pause','stop'.

カテゴリ

Help Center および File ExchangeGeneral Applications についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by