Pause model until new data arrives

조회 수: 8 (최근 30일)
BRANDON YEE
BRANDON YEE 2017년 8월 14일
댓글: BRANDON YEE 2017년 8월 15일
I have a Simulink model that processes much faster than the speed new input data arrives into the model. I have a control signal within the model that notifies when new data arrives. Is there a way to pause the model until the control signal specifies there is new data? I tried to use an enable subsystem block but I do not want to have the signal held at the last value for an extended period of time because it messes up the next part of the algorithm.

답변 (1개)

KL
KL 2017년 8월 15일
You could use set_param.
set_param('vdp','SimulationCommand','pause')
and once your signal arrives,
set_param('vdp','SimulationCommand','continue')
  댓글 수: 1
BRANDON YEE
BRANDON YEE 2017년 8월 15일
I tried this with assert but all the blocks get paused so there is no way to continue the model from within the model afterwards.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by