How to display blocks of a custom library in the Simulink library browser?
5 次查看(过去 30 天)
显示 更早的评论
I have started working on a Simulink library. I followed the instructions provided in MATLAB help and managed to create the library that I wanted. Everything works as it is supposed to, i.e. the library name is displayed in the library browser, I can open it (by right clicking on it), drag the blocks to my models and use them. However, the blocks that are in the library are not displayed in the right hand side of the library browser. Does anyone know how can I possibly display them?
1 个评论
Titus Edelhofer
2012-3-8
Hi Mihail,
hmm, never heard this: whenever I had a user being able to write the slblocks function, the content of the library also appeared. Perhaps this would be a question to ask the technical support ...
Titus
采纳的回答
xycinate
2012-3-9
1 个评论
Kaustubha Govind
2012-3-13
Could you try changing that line to:
Browser.Library = 'DrivetrainLibrary';
You shouldn't specify the .mdl extension.
更多回答(2 个)
Kaustubha Govind
2012-3-8
As Titus mentioned, if you have your slblocks.m configured, the blocks should show up. Are your blocks all subsystems? If yes, do they have masks, and do the masks have any parameters?
0 个评论
Michael Walker
2018-9-26
I have the same problem, but it only recently appeared when we changed from using 2014b, where they do appear, to 2017a, where they do not appear, with no change to the slblocks.m file. What's going on?
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Programmatic Model Editing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!