Simulink library browser shows "No blocks"

5 次查看(过去 30 天)
I can see all of the libraries, but no blocks.
I have tried: restoredefaultpath rehash toolboxcache rehash toolboxreset
I know others have seen this at our site, but no one knows what actually fixes this. Perhaps a reboot. I have tried logging out, but rebooting is not possible at the moment.
Thanks,
-Kevin
  2 个评论
Kaustubha Govind
Kaustubha Govind 2011-5-25
What do you see when you type "which -all slblocks"?
Kevin
Kevin 2011-5-26
/gncdata/matlab/r2010b/toolbox/psp/tools/ARINC653/slblocks.m
/gncdata/matlab/r2010b/toolbox/simulink/blocks/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/stateflow/stateflow/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/rtw/rtw/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/slvnv/reqmgt/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/ident/ident/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/dspblks/dspblks/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/sldv/sldv/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/simulink/blocks/sb2sl/slblocks.p % Shadowed
/gncdata/matlab/r2010b/toolbox/sldo/sldo/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/physmod/simscape/simscape/m/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/imaq/imaqblks/imaqblks/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/robust/robust/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/mpc/mpc/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/control/control/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/physmod/ne_sli/ne_sli/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/physmod/powersys/powersys/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/simrf/simrf/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/instrument/instrumentblks/instrumentblks/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/vipblks/vipblks/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/aeroblks/aeroblks/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/commblks/commblks/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/physmod/mech/mech/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/fuzzy/fuzzy/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/slcontrol/slctrlutil/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/rtw/targets/ecoder/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/edalink/edalink/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/rptgenext/rptgenext/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/sl3d/sl3d/slblocks.m % Shadowed
/gncdata/matlab/r2010b/toolbox/nnet/nnet/slblocks.m % Shadowed

请先登录,再进行评论。

采纳的回答

Rob Graessle
Rob Graessle 2011-5-26
This may be related to bug report 673978.
  1 个评论
Kevin
Kevin 2011-5-27
Good find. I am unable to write in this directory, and don't have permissions to change/move/delete it either. Unfortunately, I will also have to wait for an admin-type to come in to modify it for me. We are using 2010b as well, so this is likely the issue.

请先登录,再进行评论。

更多回答(1 个)

Seth Popinchalk
Seth Popinchalk 2011-5-26
This could be the result of a corruption of the library browser repositories. These can be regenerated by deleting or renaming the library browser information stored in the preferences directory.
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'])
for example, I renamed sl_library_browser_repos to old_sl_library_browser_repos.
  4 个评论
Kaustubha Govind
Kaustubha Govind 2011-5-26
Kevin: Have you tried Seth's suggestion? The MATLAB preference directory (prefdir) should be related to your user account, even if the MATLAB installation is shared, so that might very likely be the issue.
Kevin
Kevin 2011-5-27
Yes, I tried this, as well as renaming/moving the entire .matlab folder as well. Thanks.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 File Operations 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by