Hide Simulink badge icons

9 ビュー (過去 30 日間)
Wojciech Przystas
Wojciech Przystas 2024 年 7 月 26 日
コメント済み: Wojciech Przystas 2024 年 10 月 22 日
Hello,
When using Simulink Data Dictionary or colouring sample times, badge icons are displayed in the bottom left corner of the Simulink/Stateflow diagram.
I would like to hide or deactivate them.
What is the best way to do this, preferably programmatically?

回答 (1 件)

Shubham
Shubham 2024 年 8 月 8 日
編集済み: Shubham 2024 年 8 月 8 日
Hi Wojciech,
The Domain Specification Badge" that you see on the bottom left corner of the Simulink Editor indicates the execution domain computed for a model when you update your Simulink model. You can toggle its visibility by turning on the “Sample Time Display” from the Information Overlays.
However, you cannot hide the badge if the “Sample Time Display” is turned on. To programmatically hide the badge, you need to turn off “Sample Time Display” which can be achieved using the following code snippet:
% Turn off sample time colours
set_param(model, 'SampleTimeColors', 'off');
% Turn off sample time annotations
set_param(model, 'SampleTimeAnnotations', 'off');
% Update the model to apply changes
set_param(model, 'SimulationCommand', 'update');
You can also toggle the visibility of the badge by enabling or disabling the "Set Domain Specification" parameter in the "Execution" tab of the "Property Inspector" or by using the following command:
set_param(subsystem, 'SetExecutionDomain', 'off');
Refer to the following documentation link for more information on Domain Specification Badge”:
Hope this helps.
  1 件のコメント
Wojciech Przystas
Wojciech Przystas 2024 年 10 月 22 日
Hi Shubham
Thank you for your reply.
Your answer is not helpful to me.
Because in my case, I would like to have the option to deactivate all badge icons (regardless of domain) and not display them at all.
Thanks.
Yours sincerely, Wojciech

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

カテゴリ

Help Center および File ExchangeEvent Functions についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by