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!