Lock State:Set Method

LabView Local Project Settings

Lock State:Set Method

Short Name: Set Lock State

Installed With: Base Package

Class: Library Methods

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

This method is similar to the Protection box on the General Settings 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

NameRequiredDescription
lock stateNoSpecifies the level of editing permission to set.
  • Not locked—Users can view public and private items that the project library owns and can edit the project library and its properties.
  • Locked (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.
  • Password-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.

Available in Run-Time Engine and 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 disallowedNo
Must wait until user interface is idleNo
Available with control VIsNo
Available with global VIsNo
Available with strict type definitionsNo
Available with polymorphic VIsNo