Set signal line label visibility programatically

2 ビュー (過去 30 日間)
Vince
Vince 2020 年 7 月 9 日
回答済み: Fangjun Jiang 2020 年 7 月 9 日
I built a script to rename a bunch of lines in a Simulink template model, however, now I'm facing the problem that by renaming them Matlab automatically activates showing the label of the signal line in the model. This is really ugly and hinders readability, so I would like to only show the label on those lines that have the label visible in the template model already before renaming.
Is there a way to determine/set the visibility of the signal line name in the model via a Matlab script? I've looked at the properties I can get from the line handle but couldn't find anything.

採用された回答

Fangjun Jiang
Fangjun Jiang 2020 年 7 月 9 日
A signal line in a Simulink model, once it is named, it will always show. There is no property to hide or show it.
Unless, in your template model, it is shown as "<>" which means signal propagation. If the propagated signal names make it look busy, you can turn 'SignalPropagation' to be 'off'

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAI for Signals についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by