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!