How to tell Simulink not to treat a subsystem as a sublibrary
5 ビュー (過去 30 日間)
古いコメントを表示
Remus Mihail Prunescu
2012 年 7 月 20 日
編集済み: XiaoBo Chen
2017 年 7 月 15 日
Hi,
I made a simulink library and I added 2 sublibraries to it with the help of subsystems:
Library: - Sublibrary 1 - Sublibrary 2
In Sublibrary 2 I have a Subsystem which I do not want to be treated as a sublibrary by Simulink's library browser (i.e. I don't want it expanded into its block components). How can you achieve this?
Regards, Remus.
0 件のコメント
採用された回答
Kaustubha Govind
2012 年 7 月 20 日
According to this solution you need to mask it AND add a parameter (maybe a dummy parameter that you don't show on the dialog, if you don't need a parameter).
0 件のコメント
その他の回答 (2 件)
XiaoBo Chen
2017 年 7 月 14 日
編集済み: XiaoBo Chen
2017 年 7 月 15 日
- In Simulink Library Browser, right click on "Ports & Subsystems", select "Open Ports & Subsystems Library";
- Under "Diagram" menu, select "Unlock Library";
- open "SubSystem" block Property dialog box, select Callbacks tab;
- Comment out CopyFcn's content by adding a "%" sign ahead the content,then click ok button;
- Move mouse over the "SubSystem" block,press the right button, don't release it until your drag the mouse to your custom library, then select "Paste and Break Links" in the popup context menu;
- Remove the previous added "%" sign from CopyFcn's content in both original and pasted "SubSystem" block.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Subsystems についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!