Lock State:Set Method

Short Name: Set Lock State

Requires: Base Development System

Class: Library Methods

To Use: Create a method.

Sets the level of editing permission for a LabVIEW project library, including the password.

This method is similar to the Protection page of the Project Library Properties dialog box.

Note  The LabVIEW Datalogging and Supervisory Control Module supports this method in the Run-Time Engine.

Parameters

Data typeNameRequiredDescription
lock stateYesSpecifies the level of editing permission of the project library.

0invalid lock state
1Not locked—Users can view public and private items that the project library owns and can edit the project library and its properties.
2Locked (no password)—Users cannot add or remove items from the project library, edit project library properties, or view private items that the project library owns.
3Password-protected—Users cannot add or remove items from the project library, edit project library properties, or view private items that the project library owns. Users must enter a password to edit the project library.
interactiveNoSpecifies the way in which you can use passwords with the project library. The default is FALSE, in which you can use a password to unlock a password-protected project library or to set the password of an unprotected project library. If you set interactive to TRUE, LabVIEW ignores the password and displays a dialog box that prompts you to change the lock state.
passwordNoSpecifies the password to set for a project library to which you want to add password protection, or the password to use to unlock a password-protected project library.
put in cacheNoSpecifies whether you want to cache the password specified in password. The default is FALSE, which does not add the password to the LabVIEW password cache.

Remarks

The following table lists the characteristics of this method.

Data typeNo return value
Available in Run-Time EngineNo
Available in Real-Time Operating SystemNo
Settable when the VI is runningNo
Loads the front panel into memoryNo
Need to authenticate before useNo
Loads the block diagram into memoryNo
Remote access allowedYes