How to remove the error highlighting in Simulink?
86 次查看(过去 30 天)
显示 更早的评论
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
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
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'
0 个评论
Ameer Hamza
2018-6-1
Try Simulation Menu bar > Update diagram. Alternatively, you may also try, Diagram Menu bar > Refresh blocks.
3 个评论
Fangjun Jiang
2018-6-1
Can you try this?
select this block and then run this in Command window
hilite_system(gcb,'none')
2 个评论
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 Center 和 File Exchange 中查找有关 Interactive Model Editing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!