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
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de 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