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.
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.