Why does Simulink mark a subsystem in purple?

35 vues (au cours des 30 derniers jours)
Jonas
Jonas le 26 Fév 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?

Réponse acceptée

Jonas
Jonas le 1 Mar 2021
Received feedback from MathWorks Support that it is a bug that the purple highlighting persists and a bug fix has been requested.

Plus de réponses (1)

Qi Li
Qi Li le 26 Fév 2021
Hi Jonas,
Please refer to this document hilite_system for more details of highlighting style.
Best regards,
Qi
  2 commentaires
Jonas
Jonas le 1 Mar 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 le 1 Mar 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.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Subsystems dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by