フィルターのクリア

Multiple custom libraries in one library browser

5 ビュー (過去 30 日間)
Byunghoon Yoo
Byunghoon Yoo 2024 年 6 月 19 日
回答済み: Ayush Aniket 2024 年 6 月 19 日
Hello,
I am trying to add multiple custom libraries into just one simulink library browser at top level.
Please let me know how to do that. Below is my script and it doesn't work.
function blkStruct=slblocks
Browser.Library = {'Custom_lib_1'; 'Custom_lib_2'};
Browser.Name = "My Library";
blkStruct.Browser = Browser;
Actually, I succeeded to add 2 custom libraries in 2 library brower for each, through the below script.
But, I want to put 2 custom libraries in 1 simulink browser.
function blkStruct=slblocks
Browser(1).Library = 'Custom_lib_1';
Browser(1).Name = "My Library_1";
Browser(2).Library = 'Custom_lib_2';
Browser(2).Name = "My Library_2";
blkStruct.Browser = Browser;

回答 (1 件)

Ayush Aniket
Ayush Aniket 2024 年 6 月 19 日
Hi Byunghoon,
To integrate multiple custom libraries into a single Simulink Library Browser window at the top level, you need to create a master wrapper library that contains links to all the custom libraries as Sublibraries. Refer to the following documentation link to read about the process of creating a sublibrary:

カテゴリ

Help Center および File ExchangeBlock Libraries についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by