Creating Password-Protected VIs

When you distribute VIs, you can assign password protection to the block diagrams. The block diagram is still available, but users must enter a password to view or edit the block diagram.

You can save the VIs without the block diagrams, but doing so prevents VIs from recompiling when you import them to another platform or a new version of LabVIEW.

You also can lock a VI so users can see but not edit a block diagram without a password.

Complete the following steps to set password protection for a VI.

  1. Select File»VI Properties to display the VI Properties dialog box.
  2. Select Security from the top pull-down menu in the VI Properties dialog box.
  3. Select the Password-protected button to display the Enter Password dialog box.
  4. Enter the password in the Enter New Password field. Re-enter the same password in the Confirm New Password field.
  5. Click the OK button.

You also can add a password using the Save with Options dialog box.

You also can use the Set Lock State method to set the password of a VI programmatically.