MATLAB Answers

0

Pause model until new data arrives

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.

  0 件のコメント

サインイン to comment.

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 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.

サインイン to comment.



Translated by