how to run a MATLAB model through GUI

1 回表示 (過去 30 日間)
Milan
Milan 2013 年 10 月 22 日
コメント済み: Phani kumar KSV 2020 年 4 月 23 日
i need to run a MATLAB model from GUI ,i had used sim command but i cannot see the simulation time , i need to see the simulation timing. I used following command "set_param(gcs,'SimulationCommand','start')"but when i run from GUI model run but i cannot see the scope waveform.can u suggest me how can i run a model from GUI and can see simulation percentage or timing

回答 (1 件)

Zack Peters
Zack Peters 2013 年 10 月 25 日
Hi Milan,
If you save a model with the scopes open and then close the model, then the next time that you open that model, the scopes will open as well.
When you start the model via set_param you will get a full view of the model's simulation time at the right side of the model's status bar as well as continuous updating of the scopes.
You can see from executing the following code in the command window (try to simplify by taking the GUI out of the equation):
open_system('vdp')
set_param('vdp','SimulationCommand','start')
~Zack
  1 件のコメント
Phani kumar KSV
Phani kumar KSV 2020 年 4 月 23 日
thanks. it worked

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

カテゴリ

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