フィルターのクリア

How to indicate in MATLAB GUI when simulation in SIMULINK is complete?

11 ビュー (過去 30 日間)
Rinachi Garg
Rinachi Garg 2013 年 10 月 1 日
コメント済み: Kaustubha Govind 2013 年 10 月 3 日
I am using Stop Simulation in SIMULINK to stop the simulation when it is done running. I am sending the value which trigger stop simulation in MATLAB. But, the problem is I am not able to notify in the GUI that its complete. I am trying to set handles for particular edit box.
Can anyone suggest a better way?
Thanks.

回答 (1 件)

Kaustubha Govind
Kaustubha Govind 2013 年 10 月 1 日
You can use get_param('sys','SimulationStatus') to query when a model has finished simulation. This should return 'stopped' when the simulation is complete. See Control Simulation Using the set_param Command for more information.
  2 件のコメント
Rinachi Garg
Rinachi Garg 2013 年 10 月 1 日
Should I set sys = model_name? I tried using this approach, but may be my way of implementation is wrong. I am defining this within the function callback for edit box. But, it doesn't even reach that function callback.
Is there a block in MATLAB GUI which runs continuously?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeModel, 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