LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

password protection on a control

Instead of using "mouse down" you can use the "value changed" to ask for a password and re-set the old value (provided by the event handler) in case the password is wrong. Just make sure that the non-approved changed value isn't being accessed while the "verification" is taking place..... (Synchronous display?)

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 11 of 16
(1,001 Views)
Ah, so you are saying leave the control enabled, allow them to change it but not have it take effect on the program, then trigger on teh value being changed, ask for a PW, if verified properly change the program value to what the user set it to?

I will give that a try and report back.
Thanks for the idea! (if i am understanding correctly)
Ryan

LV 7.1
0 Kudos
Message 12 of 16
(1,001 Views)
Ryan;

You can just check if the value of the control changed, and if so, ask the person to enter the password (although, what you are asking sounds more like an authorization code than a password scheme.) The first attachment is an example on how to do that.

However, instead of going through all that (including detecting control events and the like), I'll recommend a different approach: just have a button that the user must press to change the value. An indicator in the front panel can show the current value. To change the current value, the user press the button and a dialog appears asking for both the new value and the password (or authorization code). The second attachment is an example of this approach.

Regards;
Enrique Vargas
www.visecu
rity.com
www.vartortech.com
Download All
0 Kudos
Message 13 of 16
(1,001 Views)
Enrique, thank you for your response. I had tried both of these ideas, and both do work great. I wanted to get away from having a button they had to push though. Currently I am using the first option, however I still would like to figure out this mouse down? event stuff...but for now the way I have it works anyway.

Thanks!
Ryan

LV 7.1
0 Kudos
Message 14 of 16
(1,001 Views)
If anyone else is intersted in it, here is what I did.
Ryan

LV 7.1
0 Kudos
Message 15 of 16
(1,001 Views)
Hi,

Here is a nice password popup vi. It handles key focus, and forces the user
to type a name. If both name and password are filled in, enter will close
the vi.

Regards,

Wiebe.



"esa_paranoid" wrote in message
news:5065000000050000006F810100-1079395200000@exchange.ni.com...
> If anyone else is intersted in it, here is what I did.



[Attachment Password Popup.vi, see below]
0 Kudos
Message 16 of 16
(1,001 Views)