How can I unlock or lock a custom Simulink block library from the MATLAB command prompt?
30 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 27 Juin 2009
Modifié(e) : MathWorks Support Team
le 30 Oct 2021
I would like to write a function which unlocks my custom Simulink block library, makes some changes and then locks the library again. I would then like for those changes to propagate through models that reference blocks from the library.
Réponse acceptée
MathWorks Support Team
le 30 Oct 2021
Modifié(e) : MathWorks Support Team
le 30 Oct 2021
This can be accomplished using the SET_PARAM function as follows from a MATLAB script or from the MATLAB command window:
set_param('your_library_name','Lock','off')
You can lock the library by setting this property to on:
set_param('your_library_name', 'Lock', 'on')
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Interactive Model Editing dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!