SubsystemReference 类
以编程方式控制子系统引用
自 R2022a 起
描述
使用 Simulink.SubsystemReference
的方法查询和控制 Subsystem Reference 模块。
方法
公共方法
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 | Display differences in signatures of Subsystem Reference block in model with unit test signatures of subsystem file |
版本历史记录
在 R2022a 中推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
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)