필터 지우기
필터 지우기

How to pause and resume simulation at each time step?

조회 수: 5 (최근 30일)
jagpreet  makkad
jagpreet makkad 2015년 4월 15일
답변: jagpreet makkad 2015년 5월 14일
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.

채택된 답변

jagpreet  makkad
jagpreet makkad 2015년 5월 14일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Model, Block, and Port Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by