How to tell Simulink not to treat a subsystem as a sublibrary
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (2)
Andreas Goser
el 20 de Jul. de 2012
0 votos
What about masking? Context menu -> create subsystem
1 comentario
Remus Mihail Prunescu
el 20 de Jul. de 2012
XiaoBo Chen
el 14 de Jul. de 2017
Editada: XiaoBo Chen
el 15 de Jul. de 2017
0 votos
- 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.
Categorías
Más información sobre Subsystems en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!