MATLAB: How to define a custom BlockType in Simulink

simulinkuser-defined block

Hello,
When I create a custom block using an S-function, the BlockType of this block, by using
get_param(myblock, 'BlockType')
is displayed as S-Function .
If now I put a mask on my custom block, the block type will be displayed as Reference .
How can I get this to return something like Mycustomblocktype ?
Thank you,
Jack

Best Answer

In fact, Reference was displayed because the library from which the block was taken was not on the path. It had nothing to do with the mask.