Method of VI.
Sets the lock state of a VI. If interactive is FALSE (default), you can use password to either unlock a password-protected VI or set the password of an unprotected VI. If interactive is TRUE, LabVIEW ignores password and displays a dialog box that prompts you to change the lock state. This method is similar to the Unlocked (no password), Locked (no password), and Password-protected options on the Protection page of the VI Properties dialog box.
| Name | Description |
|---|---|
| Lock State | Valid values include Not Locked, Locked (No Password), and Password-protected.
If Not Locked, users can see and edit the block diagram. If Locked (No Password), users can see but not edit a block diagram. If Password-protected, users cannot see or edit the block diagram without a password. |
| Interactive | Specifies whether to display the file dialog box to select the name of the VI strings file. The default value is FALSE. |
| Password | The password used to log in to the domain. You can configure the password using the Domain Account Manager. |
| Put in Cache | If Lock State is Password-protected, Put in Cache specifies whether to place the new password in the cache. The default is FALSE. |
The following table lists the characteristics of this method.
| Settable when the VI is running | Yes |
| Need to authenticate before use | No |
| Loads the block diagram into memory | No |
| Remote access disallowed | No |
| Loads the front panel into memory | No |
| Must wait until user interface is idle | Yes |
| Available with control VIs | Yes |
| Available with global VIs | Yes |
| Available with strict type definitions | No |
| Available with polymorphic VIs | Yes |
| Available in Run-Time Engine and Real-Time Operating System | No |