Main Content

isSystemLocked

Checks if the system is locked due to an edit or update to the subsystem reference

Since R2022a

Description

Simulink.SubsystemReference.isSystemLocked(path) returns true, if the system is locked because of an edit or update to the subsystem reference. It returns false, otherwise.

Input Arguments

expand all

The path of the subsystem reference is specified as string. You can also specify the handle of the system.

Examples

Simulink.SubsystemReference.isSystemLocked('mdl2/Subsystem Reference')
ans =

  logical

   1

Version History

Introduced in R2022a