How to remove the error highlighting in Simulink?

조회 수: 86 (최근 30일)
Joshua Yeggy
Joshua Yeggy 2018년 6월 1일
답변: Knubbig 2018년 7월 20일
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
Christopher Wallace
Christopher Wallace 2018년 6월 7일
편집: Christopher Wallace 2018년 6월 7일
What is the output if you select the highlighted block and run:
get_param(gcb, 'HiliteAncestors')

댓글을 달려면 로그인하십시오.

답변 (3개)

Knubbig
Knubbig 2018년 7월 20일
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 2018년 6월 1일
Try Simulation Menu bar > Update diagram. Alternatively, you may also try, Diagram Menu bar > Refresh blocks.
  댓글 수: 3
Ameer Hamza
Ameer Hamza 2018년 6월 1일
Which MATLAB version is this?
Joshua Yeggy
Joshua Yeggy 2018년 6월 1일
Matlab 2017b, apologies, it wouldn't let me add the version.

댓글을 달려면 로그인하십시오.


Fangjun Jiang
Fangjun Jiang 2018년 6월 1일
Can you try this?
select this block and then run this in Command window
hilite_system(gcb,'none')
  댓글 수: 2
Joshua Yeggy
Joshua Yeggy 2018년 6월 1일
Unfortunately no luck with this command.
Fangjun Jiang
Fangjun Jiang 2018년 6월 7일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Interactive Model Editing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by