Help CenterHelp Center
Returns all the active instances of subsystem references
Since R2022a
Simulink.SubsystemReference.getActiveInstances(path)
example
Simulink.SubsystemReference.getActiveInstances(path) returns all the active instances of subsystem reference blocks which point to the subsystem file.
path
expand all
The path of the subsystem reference file that is being referred in other Subsystem blocks. You can also specify the handle of the subsystem reference.
An array consisting of the path of all the active instances is returned.
Simulink.SubsystemReference.getActiveInstances('mdl2/Subsystem Reference')
ans = 4×1 cell array {'ssref1' } {'mdl1/Subsystem1' } {'mdl2/Subsystem Reference' } {'mdl1/Subsystem/Subsystem Reference'}
Introduced in R2022a
Simulink.SubsystemReference
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office