I started to build a larger Simulink Library, which is split into several .mdl files.
Now I want to create a slblock.m configuration in a way that the library browser will show my library hierachy, example:
main library
|- sublibrary 1
`- sublibrary 2
`- subsublibrary 2.1
I read the documentation and looked at toolboxes how this could be done, until now without any success.
I found a hint to use
browser(1).Children = {'sublibrary 1', 'sublibrary 2'}
in the slblocks.m description, but this is ignored and my libraries still appear side by side on top level.
any suggestions ?
thank you very much

 Akzeptierte Antwort

Kaustubha Govind
Kaustubha Govind am 1 Sep. 2011

0 Stimmen

Although there is currently no definite answer on the page, there are some hints that you may find useful.

2 Kommentare

Wolfgang Rohrmoser
Wolfgang Rohrmoser am 2 Sep. 2011
Thank you very much for your quick answer. Yes I have already read the reference you mention, but it does not help in my case.
The starting point is, that our library needs to be composed out of different mdl files. To have only one single (huge) library file is not acceptable, regarding our software engineering guidlines. Especially this would break concurrent development in the project team.
I have seen that a library browser hierachy is possible. I saw
this during a visit in an other company and I remember that it was done by a browser(idx).Children = ??? structure entry.
Unfortunately I cannot ask again.
What I am missing is a documentation about the library browser
and how the blkStruct structure ist designed. All I found are
pointers to existing slblocks.m. This is NOT what I expect
from a good MathWorks documentation.
Maybe somebody uses a toolbox which uses this feature. It would be a big help to investigate the slblocks.m file in this case.
thanks again
W. Rohrmoser
Dean Kowal
Dean Kowal am 21 Mär. 2012
Hi Wolfgang, I (also) desire to setup LIBs same as you. Did you ever discover the 'details' to get the job done? If so, can you share that with me too? (thx) --Dean Kowal

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by