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.
![]() |
Note The password does not take effect until you restart LabVIEW. |
You also can add a password using the Source Distribution Properties dialog box.
You also can use the Lock State:Set method to set the password of a VI programmatically.