Customized Library version management
조회 수: 6 (최근 30일)
이전 댓글 표시
Hello,
I would like to create a library in Simulink with the possibility of version management of the individual blocks in the library.
I have already implemented a library. However, if I make a change to one block, it immediately affects all my models. But I don't want this to happen automatically. I would like to be able to decide whether the block in my model should apply the change or not. In the library itself, however, I only want the latest version to be displayed.
So my question is whether anyone already has experience with the Simulink library and versioning and can give me a tip.
댓글 수: 0
채택된 답변
Benjamin Thompson
2022년 7월 14일
편집: Benjamin Thompson
2022년 7월 14일
Simulink libraries just have one version number for the whole thing just like Simulink model files. You can not version each block in a library separately. If you have a model using a library block, you can disable that library link and modify the block in the model using it. Then Simulink will have a push or restore option that you can choose when it comes times to decide whether to have your model continue using the modified library block, push that modified block to the library to make the change permanent, or revert the change to use the library block.
댓글 수: 3
Benjamin Thompson
2022년 7월 15일
You can lock links to a library, but not to a specific block in the library. Or, make the block in a library on its own.
Are you trying to prevent users from making changes or from seeing the block implementation at all?
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!