simulink library not showing up

조회 수: 6 (최근 30일)
Constantin Runge
Constantin Runge 2018년 12월 16일
답변: Jon Snow 2019년 5월 6일
I've set up a bunch of simulink libraries from some commonly used block in my Simulink project. I did this the following way:
- For each library:
- create a new model based on the empty library template
- copy the blocks from the original model into the library
- create subsystems from the blocks and add a mask (All come with type and description, some come with parameters)
- set the 'EnableLBRepository' param to 'on'
- Then I created a 'lib' library referencing all the other libraries exactly as in the section 'Create a Sublibrary' from https://www.mathworks.com/help/simulink/ug/creating-block-libraries.html
- finally I've added a slblocks.m in the folder, where all the libraries are stored:
function blkStruct = slblocks
Browser.Library = 'lib';
Browser.Name = 'My great library';
blkStruct.Browser = Browser;
Now when I reload the library browser, matlab prints the line
File "variable" not found.
Also 'My great library' does not appear in the library browser. Instead a file 'variable.slx' is created in the projects work directory.
What can I do to troubleshoot and fix the problem? I've already tried creating the library from scratch in a new folder with new, empty libraries, just copying the components from the old one and creating new subsystems and masks.
  댓글 수: 1
Constantin Runge
Constantin Runge 2018년 12월 17일
I just unzipped all the models and grepped for 'variable' (case insensitive) in file contents and names but didn't find anything.

댓글을 달려면 로그인하십시오.

답변 (1개)

Jon Snow
Jon Snow 2019년 5월 6일
Were you able to resolve this issue? I'm facing the same one. Cheers

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by