Set Lock State Method

Inherits from VI Methods.

Sets the lock state of a VI. If interactive is False (default), password is used to either unlock a password protected VI or set the password of an unprotected VI. If interactive is true, password is ignored and a dialog is presented to change the lock state. Set Lock State also contains parameters.

The following table lists the parameters for this method.

ParametersDescription
lock stateAn enumeration of: Unlocked, Locked (no password), Password protected.
interactiveSpecifies whether a dialog should be presented to the user to change the lock state.
passwordIf setting the lock state to Password protected, this is the new password. If changing the lock state from Password protected, this is the old password.
put in cacheIf setting the lock state to Password protected, putInCache specifies whether the new password should be placed in the cache.

The following table lists the flags for this method.

Is settable when the VI is runningNo
Requires the block diagram to be loadedNo
Is available on local LabVIEW onlyNo
Requires the front panel to be loadedNo
Must wait until user interface is idleYes
Is available with control VIsYes
Is available with global VIsYes
Is available with strict type definitionsNo
Is available with polymorphic VIsYes
Available in Run-Time EngineNo