Why do I lose port information when I make a copy of the S-function builder block in Simulink?

2 views (last 30 days)
I have an S-function builder block that has two input ports. When I copy this block to the same model, the S-function block loses this port information. The block graphically shows that it has two ports, but when I go into the block, it shows the default input/output port information.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, please read below for any possible workarounds:
The ability to copy S-function builder blocks without losing port information is not available in Simulink.
Currently to work around this issue, try the following:
1. Create an S-function builder block and completely build the required S-function.
2. Add another S-function block to the model and configure this block to have the same:
a. name
b. parameter list
as the S-function builder block. You may need to build a mask for the S-function parameters.
3. Now make copies of the new S-function.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!