Linked Blocks - MATLAB & Simulink (original) (raw)

Main Content

When you add a library block or a Subsystem block from a library to a Simulink® model, a referenced instance of the library block is created. Such referenced instance of a library block is called a linked block and contains link or path to the parent library block. The link or path allows the linked block to update when the library block is updated.

To optimize the performance, the child blocks (and the parameters) of a linked block are not saved with the Simulink model. When such a model is loaded and viewed, the child blocks are referenced from the parent library. If you change the parameter value of a child block of such a linked block, the changed information is saved as linked data in the model.

Note

The tooltip for a linked block shows the name of the parent library block.

A linked block with tooltip.

To browse the parent library and other libraries in the Library Browser, right-click the block and select > . This option is available for all libraries that are added to the Library Browser. Alternatively, to view only the parent library block of a linked block, right-click the block and select > or press Ctrl + L. This option is available for the blocks that are linked and not for the Simulink built-in blocks.

To prevent unintentional disabling of library links and accidental changes to your library blocks, you can lock the links between a parent library block and its linked blocks, and hide the block implementation details. For more information, see Lock Links to Blocks in a Library and Hide Library Block Details in Create Custom Library.

When you edit a parent library block (either in the Simulink Editor or from the command line), Simulink updates the changes in the linked blocks. The outdated links are updated when you:

Rules for Linked Blocks

Linked Block Terminology

See Also

Functions

Tools

Topics