Library Browser Object methods "getSortedLibraryNames" not accessible in 2016b (was in 2012b)

1 view (last 30 days)
In MATLAB 2012b, it was possible to get the visible libraries in the library browser like below:
GUI.cm = DAStudio.CustomizationManager;
GUI.lbBrowserLibraries=GUI.cm.LibraryBrowserCustomizer.getLB;
% get Visible Libraries in the simulink Browser
visibleLibraries = GUI.lbBrowserLibraries.getSortedLibraryNames;
However, in MATLAB 2016b, it is not possible to get the library browser object via:
GUI.lbBrowserLibraries=GUI.cm.LibraryBrowserCustomizer.getLB;
and then call the given methods.
I know it is possible to access a library browser window object in 2016b with:
GUI.lbBrowserLibraries = LibraryBrowser.LibraryBrowser2
But, it is not what I need. It only contains the window management methods.
Is there an equivalent in MATLAB 2016b?
Note: I also know that it is possible to get all visible and non visible libraries with:
LibraryBrowser.internal.findLibraryInfo
However, it looks like this function regenerate all paths and looks in every folders and subfolder in order to find the libraries. This can take up to 5 minutes because I have a bunch of libraries in given directory. On the opposite,
visibleLibraries = GUI.lbBrowserLibraries.getSortedLibraryNames
only took milliseconds to get the libraries from the GUI.

Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!