Remove Highlighting in Block
조회 수: 46(최근 30일)
Ajay krishna Vasanthakumar 2020년 6월 5일
when i try to highlight and remove the highlight for a block programitically using hilite_system function
the Blocks loses its foreground colour which was set by default
switch block's foreground colour is green before simulation
during simulation i am highlighting it to blue
Now,After simulation when i remove the highlight using hilite_system(blockpath,'off')/ hilite_system(blockpath,'none') the default green foreground color has turned to black
I need to retain the foreground color when i remove highlighting
Please help me how to resolve this problem
Fangjun Jiang 2020년 6월 8일
"during simulation i am highlighting it to blue". It is not highlighting. It is changing color.
If you ran hilite_system(block,'find'), hilite_system(block,'error') then hilite_system(block,'none') or hilite_system(glock,'off'), the original foreground color of the block is preserved.
Kaushal Dave 2020년 6월 5일
To remove all highlighting, right-click the model, and then select Remove Highlighting, or, on the Signal tab, click Remove Trace.
For extra help, refer this article : https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwjs1Mbrz-rpAhVm8HMBHYdYAIcQFjACegQIFxAF&url=https%3A%2F%2Fwww.mathworks.com%2Fhelp%2Fsimulink%2Fug%2Fdisplaying-signal-sources-and-destinations.html%23%3A~%3Atext%3DTo%2520remove%2520all%2520highlighting%252C%2520right%2CSignal%2520tab%252C%2520click%2520Remove%2520Trace.&usg=AOvVaw2LDPL9s-_Lf8SD8JRZIkup
If you want to remove thethe highlinghting generated from the error in Simulink, we can remove highlighting in Simulink by "Removing Highlighting: To remove all highlighting, select Remove Highlighting from the model's context menu, or select Display > Remove Highlighting." This works for Models, however when saved as a library, this does not work.
For extra help: Refer this article : https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwi9956R0OrpAhWXIbcAHd3pDpEQFjABegQIFRAE&url=https%3A%2F%2Fin.mathworks.com%2Fmatlabcentral%2Fanswers%2F415869-how-do-i-remove-signal-highlighting-inside-a-library-in-simulink-matlab-2016b%23%3A~%3Atext%3DAccording%2520to%2520the%2520MATLAB%2520documentation%2Clibrary%252C%2520this%2520does%2520not%2520work.&usg=AOvVaw1KF4pDYBL3kquN_SS9PTh8