Main Content

getSystemOwningTheLock

Returns the system that has acquired the lock for editing

Description

Simulink.SubsystemReference.getSystemOwningTheLock(path) For a given system, it returns the system that has acquired the lock for editing.

Input Arguments

expand all

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

Output Arguments

expand all

The path of the system owning the lock for the given subsystem reference is returned. Output will be empty if no instance is editing.

Examples

>>Simulink.SubsystemReference.getSystemOwningTheLock('mdl2/Subsystem Reference')

ans =

    'mdl1/Subsystem1'

Version History

Introduced in R2022a