Locking and Unlocking LabVIEW Classes

LabVIEW 2018 Help


Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)


LabVIEW 2015 Help
LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help

You can lock LabVIEW classes 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 does not add password protection to the member VIs. You must password protect the member VIs individually.

Locking LabVIEW Classes

Complete the following steps to lock a LabVIEW class:

  1. Right-click a LabVIEW class and select Properties from the shortcut menu. The Class Properties dialog box appears.
  2. On the Protection page, select Locked (no password) or Password-protected to lock the LabVIEW class.
    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 Properties dialog box.
  3. Click the OK button.

Unlocking LabVIEW Classes

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

  1. Right-click a LabVIEW class and select Properties from the shortcut menu. The Class Properties dialog box appears.
  2. On the Protection page, select Unlocked (no password). If the LabVIEW class is locked with a password, enter a password in the Authentication dialog box and click Verify to return to the Class Properties dialog box.
  3. Click the OK button.
Note  Locking a LabVIEW class affects the appearance of the class in the Context Help and the generic probes. LabVIEW also hides the private member VIs of a locked class 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.

WAS THIS ARTICLE HELPFUL?

Not Helpful