What is the command to remove the red star on a block in Simulink?

5 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 9 Mag 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’.

Più risposte (0)

Categorie

Scopri di più su Simulink Functions in Help Center e File Exchange

Prodotti

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by