SubsystemReference class
Control subsystem reference programmatically
Since R2022a
Description
Use the methods of Simulink.SubsystemReference
to query and control the
subsystem reference blocks.
Methods
Public Methods
convertAllSubsystemReferenceBlocksToSubsystem | Converts all subsystem reference blocks to regular Subsystem blocks |
convertSubsystemReferenceBlockToSubsystem | Converts a subsystem reference block to a regular Subsystem block |
convertSubsystemToSubsystemReference | Converts a Subsystem block to subsystem reference |
getActiveInstances | Returns all the active instances of subsystem references |
getAllDirtyInstances | Returns child Subsystem block diagrams that are referred in the given block diagram and are also being edited |
getAllInstances | Returns all subsystem reference blocks inside a block diagram |
getAllReferencedSubsystemBlockDiagrams | Returns all the child Subsystem block diagrams for a given block diagram |
getNearestParentSubsystemReferenceBlock | Returns the nearest parent subsystem reference for a block |
getSystemOwningTheLock | Returns the system that has acquired the lock for editing |
isSystemLocked | Checks if the system is locked due to an edit or update to the subsystem reference |
Simulink.SubsystemReference.generateSignatures | Generate unit test signatures of subsystem file |
Simulink.SubsystemReference.getUnitTestNames | Return names of unit tests of subsystem file |
Simulink.SubsystemReference.removeSignatures | Remove previously generated unit test signatures of subsystem file |
Simulink.SubsystemReference.showSignatureDiffDialogForSS | Open dialog to show difference in signatures of two subsystem blocks |
Simulink.SubsystemReference.showSignatureDiffDialogForUnitTests | Open dialog to show difference in signatures of subsystem reference instance with unit test signatures |
Version History
Introduced in R2022a
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)