Figure is not updating on itself

39 ビュー (過去 30 日間)
Elvis
Elvis 2023 年 1 月 23 日
回答済み: Shuba Nandini 2023 年 3 月 30 日
For a school project we are provided with figures that open once a simulink model is run. My problem is that these displays do not refresh by themselves, the matlab code itself is running in the background and giving continuous values checked by scopes but only when i hover my mouse over the "displays" they show the current values. My teacher seems clueless and other people don't have that problem.
I already tried various model configs sample time etc
I would appreciate any help
  2 件のコメント
Nikhilesh
Nikhilesh 2023 年 2 月 28 日
Please share your model so that i can reproduce the issue on my end.
Ashfaq Ahmed
Ashfaq Ahmed 2023 年 3 月 15 日
Have you tried "clf" and the "close all" command?

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

回答 (1 件)

Shuba Nandini
Shuba Nandini 2023 年 3 月 30 日
Hello,
It is my understanding that figures in your Simulink model are not updating automatically, and you need to manually refresh them by hovering over them with your mouse. This is likely because the figures are not being updated by the Simulink model’s code.
To solve this issue, you can use “drawnow” function in MATLAB to force the figures to update. This function can be used to update the figures in your Simulink model. To know about “drawnow” function, please refer to the below link:
I hope this helps!
Regards,
Nandini

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

タグ

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by