What is the command to remove the red star on a block in Simulink?
5 views (last 30 days)
Show older comments
MathWorks Support Team
on 9 May 2019
Answered: MathWorks Support Team
on 9 May 2019
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?
Accepted Answer
MathWorks Support Team
on 9 May 2019
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 Comments
More Answers (0)
See Also
Categories
Find more on Simulink Functions in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!