Locks the label or caption to the owning control, indicator, or terminal. You cannot set this property on text fields that are not labels or captions, such as Boolean text, numeric text, free labels, and so on.

This property is similar to the Lock Label option in the shortcut menu.

Note You cannot lock labels to wires.

You can use the Position:Left and Position:Top properties to move a label programmatically. You also can use the Move to Default Location method to return the label to its default position programmatically.

Remarks

The following table lists the characteristics of this property.

Short Name Lock
Data type cbool.png
Permissions Read/Write
Available in Run-Time Engine Yes
Available in Real-Time Operating System Yes
Settable when the VI is running Yes
Loads the front panel into memory No
Need to authenticate before use No
Loads the block diagram into memory No
Remote access allowed Yes