From: Bahattin on
I created a custom library, that I've add to the library browser by using sl_blocks.m and a .lib file on my matlab path. This works fine so far.

Now I want to add a (empty) masked subsystem with an OpenFcn Callback to this library, but the result is, that this block is not shown in the library browser.
Deleting its OpenFcn Callback lets this block appear in the browser.
If I only add just a "disp('hello world');" into its OpenFcn textfield, this block disappears also.

In the "Simulink" -> "Signal Routing" library is a block called "manual switch", which also works with an OpenFcn Callback, so I don't know why it doesn't work in my case.

I couldn't find anything about this issue, so i hope someone here can help me.