Effacer les filtres
Effacer les filtres

how can I unlock a library file (not a library block) by command line.

4 vues (au cours des 30 derniers jours)
gao
gao le 9 Nov 2015
Commenté : gao le 12 Nov 2015
how can I unlock a library file (not a library block) by command line? for example, open a myLib.slx file and need to edit. The first thing need to do is to unlock this model. So Simulink will show: Attempt to modify 'untitledLib', which is or is in a locked library. The action performed requires you to unlock this library.So I need to hit * unlock this library. but i want to do this by command line. it seems set_param(gcb, 'Lock', 'off'); set_param(gcb, 'LinkStatus', 'inactive') are not works.

Réponse acceptée

Madhu Govindarajan
Madhu Govindarajan le 10 Nov 2015
Have you tried it on the library itself instead of the blocks??? GCB is for blocks, I would recommend the following
>> set_param(gcs,'Lock','off')
  2 commentaires
gao
gao le 12 Nov 2015
Thanks Madhu! it works.
gao
gao le 12 Nov 2015
Thanks Madhu! it works.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Subsystems 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!

Translated by