How to get Simulation Status correctly?

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

Antworten (1)

Fangjun Jiang
Fangjun Jiang am 20 Okt. 2020

0 Stimmen

Use set_param('vdp','SimulationCommand','continue') to change the simulation status, other options are 'start', 'pause','stop'.

Kategorien

Mehr zu General Applications finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2017b

Gefragt:

am 20 Okt. 2020

Beantwortet:

am 20 Okt. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by