Simulink Function in Custom Library Browser

2 views (last 30 days)
How do you make a Simulink Function (the relatively new block that pairs with the Function Caller) appear in a custom user library?
I can make it appear, but the library browser is treating it as an unmasked system and showing the internal contents. Unlike other Simulink blocks, I can't add a mask to this function.

Accepted Answer

Cam Salzberger
Cam Salzberger on 3 Sep 2015
Hello,
I understand that you would like the Simulink Function Block to be masked so that the internals do not appear in the library browser. Unfortunately, the option to mask the function was intentionally disallowed when the block was released to emphasize that it is a function, and not a traditional block.
The developers are aware of the issue, and the option to allow masking is being considered for a future release of MATLAB.
I'm sorry I couldn't be of more help.
-Cam
  1 Comment
Charper
Charper on 3 Sep 2015
Edited: Charper on 3 Sep 2015
I appreciate the answer. I get not allowing a mask, but all I really want to do is "collapse" the function in the library browser.
I'm aware of the (undocumented?) ShowInLibBrowser parameter. Is there an equivalent method to keep a function's contents from expanding in the browser? I'm open to scripting or including an sl_customization entry.

Sign in to comment.

More Answers (0)

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!