Lock State:Get Method

Short Name: Get Lock State

Requires: Base Development System

Class: Library Methods

To Use: Create a method.

Returns the lock state of the LabVIEW project library and indicates whether the password for the project library is in the password cache.

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
Get Lock StateNoIndicates 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.

Remarks

The following table lists the characteristics of this method.

Data type
Available in Run-Time EngineYes (Read/Write)
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