Can my Model Reference block become a linked library block in Simulink?
1 view (last 30 days)
Show older comments
I was wondering if I could create a linked library block from a Model Reference block.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
This bug has been fixed in Release 2007a (R2007a). For previous product releases, read below for any possible workarounds:
Simulink does not allow you to create a linked library from a Model block. Only subsystems and masked blocks can become linked library blocks. Model Reference blocks are not either of these type of blocks.
To work around this issue, you can consider either of the following options:
1. Put the model block into a subsystem block for the purpose of making that subsystem a library block.
This creates a subsystem wrapper that can then be a linked library block.
2. Mask the Model Reference block via:
set_param(gcb,'Mask','on')
This will then allow the Model Block to be a linked library block, since it becomes a masked block.
0 Comments
More Answers (0)
See Also
Categories
Find more on Subsystems 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!