Main Content

slLibraryBrowser

Open, load, and close Simulink Library Browser, create and get handle of Library Browser object

Description

slLibraryBrowser opens the Simulink® Library Browser in standalone mode. For more information on standalone mode, see Library Browser in Standalone Mode.

Note

  • If you want to load the Simulink block library, use load_system simulink instead.

  • If you want to start Simulink without opening any windows, use the faster start_simulink instead.

libraryhandle = slLibraryBrowser creates the Library Browser object LibraryBrowser.LBStandalone and returns the object handle. When you have the object handle, you can use the object properties and functions to display, hide, size, position, and refresh the Library Browser in standalone mode. For more information, see Library Browser in Standalone Mode, LibraryBrowser.LBStandalone, show, hide, getPosition, setPosition, and refresh.

When you use slLibraryBrowser to get the object handle:

  • If the Library Browser is open in standalone mode, the Library Browser window moves in front of all other Simulink windows.

  • If the Library Browser is not open in standalone mode, the Library Browser opens in standalone mode.

Note

You can also use LibraryBrowser.LibraryBrowser2 to create and get the handle of the Library Browser object. LibraryBrowser.LibraryBrowser2 does not open a Library Browser in standalone mode or move the Library Browser in front of other Simulink windows.

example

slLibraryBrowser('open') opens the Library Browser in standalone mode.

example

slLibraryBrowser('noshow') loads the Library Browser in memory without making it visible.  Use this to make future calls to slLibraryBrowser('open') faster.

example

slLibraryBrowser('close') closes the Library Browser in standalone mode.

example

Examples

collapse all

slLibraryBrowser
slLibraryBrowser('close')
libraryhandle = slLibraryBrowser('noshow')

Limitations

The slLibraryBrowser function does not act on a docked Library Browser. To use the slLibraryBrowser function, open the Library Browser in standalone mode by clicking the Launch standalone library browser button Launch standalone library browser button.

Version History

Introduced in R2016a

expand all