| Using Simulink | Search  Help Desk |
Breaking a Link to a Library Block
You can break the link between a reference block and its library block to cause the reference block to become a simple copy of the library block, unlinked to the library block. Changes to the library block no longer affect the block. Breaking links to library blocks enables you to transport a model as a stand-alone model, without the libraries. To break the link between a reference block and its library block, select the block, then choose Break Library Link from the Edit menu. You can also break the link between a reference block and its library block from the command line by changing the value of theLinkStatus parameter to 'none' using this command.
set_param('refblock', 'LinkStatus', 'none')
You can save a system and break all links between reference blocks and library blocks using this command.
save_system('sys', 'newname', 'BreakLinks')