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!