How can I unlock or lock a custom Simulink block library from the MATLAB command prompt?
30 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2009 年 6 月 27 日
編集済み: MathWorks Support Team
2021 年 10 月 30 日
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.
採用された回答
MathWorks Support Team
2021 年 10 月 30 日
編集済み: MathWorks Support Team
2021 年 10 月 30 日
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Interactive Model Editing についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!