Effacer les filtres
Effacer les filtres

How to pause and resume simulation at each time step?

5 vues (au cours des 30 derniers jours)
jagpreet  makkad
jagpreet makkad le 15 Avr 2015
I am trying to pause the simulation at each time step using the assertion block but the model is getting paused at 1st time step and not getting Resumed(Continued).
I have appended 'set_param(bdroot,'SimulationCommand','pause'), set_param(bdroot,'SimulationCommand','continue')' Commands in the callback of assertion block.

Réponse acceptée

jagpreet  makkad
jagpreet makkad le 14 Mai 2015
I got the way of doing the same. We can do it using callbacks of model. In model callbacks we can set the Simulation to pause using Set_param and then at Pause callback we can do whatever we want and at the end of callback we can resume the simulation.

Plus de réponses (0)

Catégories

En savoir plus sur Model, Block, and Port Callbacks dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by