What is the command to remove the red star on a block in Simulink?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 9 Mai 2019
Beantwortet: MathWorks Support Team
am 9 Mai 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?
Akzeptierte Antwort
MathWorks Support Team
am 9 Mai 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulink Functions finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!