Locking and Unlocking VIs

You can lock a VI so users can see but not edit a block diagram without a password. You also can assign password protection to a VI so users cannot see or edit the block diagram without a password. You can use the Set Lock State method to lock or unlock a VI programmatically.

Complete the following steps to lock a VI.

  1. Select File»VI Properties to display the VI Properties dialog box.
  2. Select Security from the Category pull-down menu.
  3. Click Locked (no password) or Password-protected.
  4. If you selected Password-protected, enter the password in Enter New Password and re-enter it in Enter New Password Again to Verify.
  5. Click the OK button, then click the OK button again. The password does not take effect until you restart LabVIEW.

Unlocking VIs

Complete the following steps to unlock a VI.

  1. Select File»VI Properties to display the VI Properties dialog box.
  2. Select Security from the Category pull-down menu.
  3. If the VI is locked without a password, select Unlocked (no password) to unlock it. If the VI is locked with a password, select Unlocked (no password) and enter the appropriate password in Enter Password To Access Block Diagram. Click Yes in the prompt to remove protection.