MATLAB: Is there a way to see the Library Link Display for a masked subsystem with an invisible frame in Simulink

displayinvisiblelibrarylinkmasksimulinksubsystem

My library contains masked subsystems. The Frame property for those subsystems is set to Invisible.
I would like to be able to see if the block used in a user model is linked to the library or a local copy. This is easily done with the Library Link Display option in Simulink.
However, if the Frame setting is Invisible, the library link display does not appear.

Best Answer

For a masked subsystem, the link display will only be shown if the Frame visibility is set to 'Visible'.
A workaround is to add a line to the masks in the library:
text(.2, .3, ['Link Status: ' get_param(gcb,'LinkStatus')]);
See the attached example library. Drag the block into a model, and the Link Status will show 'Resolved'. If you right-click>Link Options>Disable Link, after an update diagram, the display will change to 'Disabled'. If you then right-click>Link Options>Break Link, after an update diagram the display will change to 'None'. Note the display is 'None' in the library because that is the original source of the block.