LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

password protection to an execution file

I want to create an execution file with password protection. I want to protect the running application that if somebody wants to change any numeric control values or play around with the running program a pop up window will come out and will ask for password access. 
Any advise or hint i will greatly appreciate.
 
kind regards,
0 Kudos
Message 1 of 12
(4,566 Views)
Hello Ayo,

I would change the working order: first ask for a password and then grant access to the controls.
Notes:
1) Set property nodes "Disabled" to 1 (Disabled) or 2 (Disabled and grayed out)  for all relevant controls
2) Make a menu entry (or button or whatever) to allow the user to input a password.
3) if password ok then set property nodes "Disabled" to 0 (Enabled)

Kind of engineering mode, heh?


Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 12
(4,564 Views)

hi Gerd,

Thank you very much for the reply. Since I am still new with LaVIEW, is there a sample VI i can look at? I am using a LabVIEW 7.1. Thanks a lot.

0 Kudos
Message 3 of 12
(4,557 Views)
Hello Ayo,

here comes your small and quick example!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 12
(4,554 Views)
hi Gerd.
 
You made it so easy. Thank you very much.
Now I have to think how can I log-off or reset the password data field, for instance after I finish inputting data to the numeric control. This way I will not worry if I forgot to remove the password or not.
 
I appreciate very much your kind help.
0 Kudos
Message 5 of 12
(4,550 Views)
Hello Ayo,

what about a timeout?

1) When given password is ok, set a boolean flag to true (meaning "password ok")
2) start a timer on rising edge of this boolean
3) if user logs off, set flag to false (meaning "password not ok")
4) if timer runs out also set flag to false...

Set property nodes of your controls according to flag.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 12
(4,548 Views)
Hi Gerd,
 
Thanks again.
I will try to make your suggestion.
 
But for my application I have to control at least 50 numeric controls in cluster. I need time to set and input data for each control. So I prefer that after I finish inputting all control data, then i will log-off, which will then erase the password field.
In my application, once I change the value of each control, the new value becomes the new default value ONLY when i push the stop button. Hence, I am thinking now that if I push the Stop button, it will also mean a log-off or erase the password field. Can you give me idea on this?
 
Best regards,
 
 
0 Kudos
Message 7 of 12
(4,546 Views)
Hello Ayo,

in this case I would put all the controls on a subVi. To open this subVi the user has to give the (correct) password. Upon "Stop" (I would label this "OK and LogOff") the values are given to your process management and the subVi closes again. That should do it.


Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 12
(4,543 Views)

Good Morning Gerd.

I tried to modify the VI that you sent me. I made a cluster of number controls and an Authorized Indicator. As for example I just made two number controls. Making the cluster number control a sub-VI will entirely change the program.

Is there a way to put a reset or clear button which will erase the password?

Have a nice day.

kind regards,

 

Message 9 of 12
(4,521 Views)
Hello Ayo,

here comes the next example...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 12
(4,508 Views)