Locking and Unlocking LabVIEW Classes or Interfaces

You can lock LabVIEW classes or interfaces to prevent access to the private member VIs which in turn can help prevent errors being introduced to the application. As with project libraries, adding password protection to LabVIEW classes or interfaces does not add password protection to the member VIs. You must password protect the member VIs individually.

Locking LabVIEW Classes or Interfaces

Complete the following steps to lock a LabVIEW class or interface:

  1. Right-click a LabVIEW class or interface and select Properties from the shortcut menu. The Class/Interface Properties dialog box appears.
  2. On the Protection page, select Locked (no password) or Password-protected to lock the LabVIEW class or interface.
    1. If you select Password-protected, enter and verify a password in the Enter Password dialog box.
    2. Click the OK button to close the Enter Password dialog box and return to the Class/Interface Properties dialog box.
  3. Click the OK button.

Unlocking LabVIEW Classes or Interfaces

To view the private data of a locked class on a LabVIEW probe or member VIs of a locked class or interface, you must unlock the class or interface. Complete the following steps to unlock a class or interface:

  1. Right-click a class or interface and select Properties from the shortcut menu. The Class/Interface Properties dialog box appears.
  2. On the Protection page, select Unlocked (no password). If the class or interface is locked with a password, enter a password in the Authentication dialog box and click Verify to return to the Class/Interface Properties dialog box.
  3. Click the OK button.
Note  Locking a class or interface affects the appearance of the class or interface in the Context Help and the generic probes. LabVIEW also hides the private member VIs of a locked class or interface on the palettes. Changes to the palettes occur the next time you launch LabVIEW.
Note Note  When you add the class private data control to the front panel of a VI, LabVIEW locks the class. You cannot unlock the class by deleting the control from the VI. Instead, you must delete the control and close or save the VI, to remove the class control from memory.