Why does Simulink mark a subsystem in purple?

50 Ansichten (letzte 30 Tage)
Jonas
Jonas am 26 Feb. 2021
Beantwortet: Jonas am 1 Mär. 2021
Simulink has marked a subsystem with a purple border. The border color of the block itself is still black, but there is another purple/magenta highlight border around it.
Why is this?

Akzeptierte Antwort

Jonas
Jonas am 1 Mär. 2021
Received feedback from MathWorks Support that it is a bug that the purple highlighting persists and a bug fix has been requested.

Weitere Antworten (1)

Qi Li
Qi Li am 26 Feb. 2021
Hi Jonas,
Please refer to this document hilite_system for more details of highlighting style.
Best regards,
Qi
  2 Kommentare
Jonas
Jonas am 1 Mär. 2021
Hi Qi
Thank you for your message.
But I do not think Simulink uses the hilite_system command to achieve this styling, since that command changes the ForegroundColor and BackgroundColor fields of the block, while in this case the ForegroundColor is still White, and the BackgroundColor is still Black, but there is an additional purple border around the block.
Also, this would still not explain why Simulink makes this annotation.
I have seen that MATLAB r2020b performs the same highlighting for a Goto and From block, to mark its corresponding block:
But I don't know why it has indicated a subsystem in my case.
Jonas
Jonas am 1 Mär. 2021
I have noticed that if I close the model and reopen, the subsystem is not marked in purple anymore. However, when I go inside the subsystem and click on a Goto block, it markes a corresponding From block and ALSO marks the subsystem it is in. Upon de-clicking the Goto block, the From block is unmarked with the purple but the subsystem is still marked in purple and I cannot get rid of it.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Subsystems finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by