MATLAB: Are the library blocks containing masked S-functions unable to propagate changes in Simulink libraries

simulink

I have a library that contains links to blocks from individual libraries. When I make a change to the block in one of these individual libraries, the changes are not propagated to the interface library.

Best Answer

The custom blocks are not propagated to the interface library, because the custom blocks are masked S-functions. For a masked S-function block, in order for the port numbers to be captured in the libraries, you need to re-apply the S-function.
As a workaround, perform the following steps:
1. Unlock the library.
2. Right-click on the block and select the menu "Look under Mask"
2. Go to the S-function dialog, cut the S-function name.
3. Paste the S-function name and click Apply.