How to tell Simulink not to treat a subsystem as a sublibrary

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.

 채택된 답변

Kaustubha Govind
Kaustubha Govind 2012년 7월 20일

0 개 추천

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).

추가 답변 (2개)

Andreas Goser
Andreas Goser 2012년 7월 20일

0 개 추천

What about masking? Context menu -> create subsystem

댓글 수: 1

I made a mask and the library browser still expands the subsystem into its components (and I also refreshed the tree view after I did the changes).

댓글을 달려면 로그인하십시오.

XiaoBo Chen
XiaoBo Chen 2017년 7월 14일
편집: XiaoBo Chen 2017년 7월 15일

0 개 추천

  1. In Simulink Library Browser, right click on "Ports & Subsystems", select "Open Ports & Subsystems Library";
  2. Under "Diagram" menu, select "Unlock Library";
  3. open "SubSystem" block Property dialog box, select Callbacks tab;
  4. Comment out CopyFcn's content by adding a "%" sign ahead the content,then click ok button;
  5. 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;
  6. Remove the previous added "%" sign from CopyFcn's content in both original and pasted "SubSystem" block.

카테고리

도움말 센터File Exchange에서 Subsystems에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by