Using Simulink Previous page   Next Page

Finding the Library Block for a Reference Block

To find the source library and block linked to a reference block, select the reference block, then choose Go To Library Link from the Link options submenu of the model window's Edit or context menu. If the library is open, Simulink selects and highlights the library block and makes the source library the active window. If the library is not open, Simulink opens it and selects the library block.

Library Link Status

All blocks have a LinkStatus parameter that indicates whether the block is a reference block. The parameter can have these values.

Status
Description
none
Block is not a reference block.
resolved
Link is resolved.
unresolved
Link is unresolved.
implicit
Block resides in library block and is itself not a link to a library block. For example, suppose that A is a link to a subsystem in a library that contains a Gain block. Further, suppose that you open A and select the Gain block. Then, get_param(gcb, 'LinkStatus') returns implicit.
inactive
Link is disabled.
restore
Restores a broken link to a library block and discards any changes made to the local copy of the library block. For example, set_param(gcb, 'LinkStatus', 'restore') replaces the selected block with a link to a library block of the same type, discarding any changes in the local copy of the library block. Note that this parameter is a "write-only" parameter, i.e., it is usable only with set_param. You cannot use get_param to get it.
propagate
Restores a broken link to a library block and propagates any changes made to the local copy to the library.


Previous page  Breaking a Link to a Library Block Displaying Library Links Next page

© 1994-2005 The MathWorks, Inc.