LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make USER Access?

Hellow!
Is it possible to set up a "USER access" in LV 70 so that others need to have the password to access and change my VI? thanks!
0 Kudos
Message 1 of 4
(2,706 Views)
You can password protect VIs so other users cannot see the block diagram or make changes. They can still use the VI.

This is done for each VI under VI "properties...security". You can also apply programatically using the lock state invoke node.

Don't loose the password! 🙂
0 Kudos
Message 2 of 4
(2,698 Views)
can you tell me more about lock state invoke node?
0 Kudos
Message 3 of 4
(2,694 Views)
The lock state methods are members of the VI class that can be called with an invoke node. Simply drop down an invoke node and wire a a reference to a VI to it. The lock state methods can be used to programmatically lock and unlock VIs. There are two of them and I've included their names and descriptions below:

Get Lock State: Returns the lock state of the VI and indicates whether the password for the VI is in the password cache.

Set Lock State: Sets the lock state of a VI. If "interactive" is FALSE (default), you can use password to either unlock a password-protected VI or set the password of an unprotected VI. If "interactive" is TRUE, LabVIEW ignores password and displays a dialog box that prompts you to change the lock state.

Regards,
E. Sulzer
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,672 Views)