MATLAB: How to display just the configurable subsystem in the Library browser when I include the configurable subsystem library in Simulink 7.7 (R2011a)

simulink

I have a library with configurable subsystems which I would like to include in the library browser. Using the standard slblocks.m file, all blocks are displayed in the library browser. However, I want only the configurable subsystems to be displayed – not all block choices. How can this be achieved?

Best Answer

In order to show only the configurable subsystem in the library browser you must create a new library that contains an instance of the configurable subsystem that you have defined.
There is an example attached. Here we have a configurable subsystem which is defined in a library 'definitionlib' and because when adding a library to the library browser it resolves all subsystems at the top level in the library; it will show all the option subsystems when you select this library in the browser. To avoid this I have create a new library (in the example: 'instancelib') which contains an instance of the configurable subsystem. As this is the only subsystem in the library, when it is added to the library browser it is the only block shown.