How to remove the error highlighting in Simulink?

64 visualizaciones (últimos 30 días)
Joshua Yeggy
Joshua Yeggy el 1 de Jun. de 2018
Respondida: Knubbig el 20 de Jul. de 2018
Hi all,
I just have an easy question. After using the Diagnostics panel and highlighting the block with an error, the highlighting will stay there despite fixing the error. Is there a quick way to remove the highlighting without closing and re-entering Simulink? Its not experience ending, just slightly annoying at times, especially when I know I fixed the problem.
Edit: With other blocks I can use the command "remove highlighting" or ctrl+shift+h, however with this particular block (and a few others I found), it doesn't seem to work.
  1 comentario
Christopher Wallace
Christopher Wallace el 7 de Jun. de 2018
Editada: Christopher Wallace el 7 de Jun. de 2018
What is the output if you select the highlighted block and run:
get_param(gcb, 'HiliteAncestors')

Iniciar sesión para comentar.

Respuestas (3)

Knubbig
Knubbig el 20 de Jul. de 2018
Unfortunately, I have the same mistake - maybe it is a bug?
Workaround:
  • 'Right Click' on the affected block --> 'Format' --> 'Foreground Color' --> Select 'Black'
  • 'Right Click' on the affected block --> 'Format' --> 'Background Color' --> Select 'White'

Ameer Hamza
Ameer Hamza el 1 de Jun. de 2018
Try Simulation Menu bar > Update diagram. Alternatively, you may also try, Diagram Menu bar > Refresh blocks.
  3 comentarios
Ameer Hamza
Ameer Hamza el 1 de Jun. de 2018
Which MATLAB version is this?
Joshua Yeggy
Joshua Yeggy el 1 de Jun. de 2018
Matlab 2017b, apologies, it wouldn't let me add the version.

Iniciar sesión para comentar.


Fangjun Jiang
Fangjun Jiang el 1 de Jun. de 2018
Can you try this?
select this block and then run this in Command window
hilite_system(gcb,'none')
  2 comentarios
Joshua Yeggy
Joshua Yeggy el 1 de Jun. de 2018
Unfortunately no luck with this command.
Fangjun Jiang
Fangjun Jiang el 7 de Jun. de 2018
I noticed now that the signal line is also highlighted. Not sure how it happened. If you could use an example model, describe how to make this error happen, maybe I can look it further.

Iniciar sesión para comentar.

Categorías

Más información sobre Interactive Model Editing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by