What is the command to remove the red star on a block in Simulink?
조회 수: 5 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2019년 5월 9일
답변: MathWorks Support Team
2019년 5월 9일
The parametrized link badge symbol with a red star icon whenever visible, shows that some changes in parameters had occurred in the respective blocks. Even when a parameter of one of the child blocks is modified, then later reverted to original value, still the symbol would be visible.
The manual way to remove the red star is the following:
"To remove the symbol, Right click the same 'subsystem' block-> Library Link -> View Changes and select ‘Remove changes in selected block’ button. This will revert parameters of all child blocks, back to their original values."
I want to do this programmatically, what is the command?
채택된 답변
MathWorks Support Team
2019년 5월 9일
The command is the following:
set_param(gcb,'linkdata',[])
Please be aware, that the 'gcb' command is querying the path to the current block (<https://de.mathworks.com/help/simulink/slref/gcb.html>).
So in order to make this static for a certain block, please replace gcb with the block path.
Using the command is the same as when you would ‘Remove changes in selected block’.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!