Library Browser Differences for v2009b vs. v2011a/2012a
3 views (last 30 days)
Show older comments
My company has several custom libraries that we have set up to be displayed in the library browser (following the procedure in the help file: creating a top-level library folder in the MATLAB path, adding the library models to this new library folder (each in their own folder), and including an slblock.m file according to the example in the help file).
When migrating from 2009b to 2011a (or 2012a), we noticed that we have to refresh the library browser view each time we open up MATLAB in order for our custom libraries to be shown in the libraries pane.
Is there now a different procedure for adding libraries to the library browser in order for them to be displayed without having to refresh the library browser view, or is this an issue with the newer versions of MATLAB?
Also, if I open the library browser in 2009b, and click on one of our libraries for the first time, MATLAB will generate a repository for the library. If I then close 2009b, re-open 2009b, open the library browser and click on one of our libraries, I get no message about generating a repository. With 2011a or 2012a, I get the 'generating repository' message every time.
Per a post by Seth Popinchalk last May, I did the following:
Rename the following directories:
disp([prefdir '\sl_library_browser_repos'])
disp([prefdir '\sl_library_browser_favorite'])
Rename the following file:
disp([prefdir '\sl_library_browser_lockfile'])
I then opened 2012a, opened the library browser, refreshed the library (our custom libraries showed up), and clicked on each of our custom libraries to update the repository. I then closed 2012a and re-opened it. Our custom libraries still do not show up the next time I open the library browser.
I have also issued the 'which -all slblocks' command, and verified that it lists the sblocks.m file for our custom libraries in all three versions of MATLAB.
I do not understand why the same files and directory structures for our custom libraries work perfectly with 2009b, but not with 2011a or 2012a.
Any thoughts on other things I can try?
Thanks!
Answers (0)
See Also
Categories
Find more on Simulink Environment Customization 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!