Add multiple libraries together as an overall library in the Simulink Browser

7 ビュー (過去 30 日間)
Lars Lindner
Lars Lindner 2022 年 11 月 23 日
回答済み: Lars Lindner 2022 年 12 月 15 日
Hi everybody,
I have programmed various Simulink libraries, which are distributed in various folders. Each library contains various subsystems. I would like to create an overall library in the Simulink Browser, where my libraries appear as sub-libaries.
For example, I programmed libA, libB and libC. These three libraries shall be added as sub-libraries in my "Project XXX" library in the slLibraryBrowser. What is the best approach to do this?
Thanks everybody and with greetings,
Lars

回答 (2 件)

stozaki
stozaki 2022 年 11 月 24 日
The following page describes how to register sublibraries. I created a dummy sublibrary and attached it here.

Lars Lindner
Lars Lindner 2022 年 12 月 15 日
Hello stozaki and thank you very much for your example. This helped me a lot to get started.
So far, I have been able to implement almost everything I wanted, but I think I found a bug.
I created my library "ProjectXXX" with four sublibraries in it. Every sublibrary has his OpenFcn-callback "open_system('....')" to open the specific library, which are located in sub-folders. So far, so good.
Using your "slblocks.m" I can create a "ProjectXXX" library in the Simulink Library Browser, but some sublibraries are shown empty in the Simulink Library Browser. When I open the empty library with right-click, it opens correctly and show me the correct content. This means, that the sub libraries are created correctly, but unfortunately displayed empty in the Simulink Library Browser.
So far, I have not found the source of the error. What can I do?
Thanks a lot stozaki and with best greetings,
Lars

カテゴリ

Find more on Simulink Environment Customization in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by