Get handle of Library Browser object
libraryhandle = LibraryBrowser.LibraryBrowser2 creates the Library
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,
You can also use
slLibraryBrowser to create and get the
handle of the Library Browser object.
When you use
slLibraryBrowser to get the object
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.
Keep Library Browser in Front of Other Windows
Create and get the handle of the
that lets you programmatically access the Library Browser.
lb = LibraryBrowser.LibraryBrowser2;
IsOnTop property of the Library Browser to
true), using dot notation to access the
lb.IsOnTop = 1;
LibraryBrowser.LibraryBrowser2 function does not act on a docked
Library Browser. To use the
LibraryBrowser.LibraryBrowser2 function, open
the Library Browser in standalone mode by clicking the Launch standalone library browser
Version HistoryIntroduced in R2014b
LibraryBrowser.LBStandalone object replaces
In previous releases, these two commands returned a
lb = slLibraryBrowser lb = LibraryBrowser.LibraryBrowser2
Starting in R2016b, each command returns a
LibraryBrowser.LBStandalone object. The functions to access Library Browser operations such as show and refresh support