LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

prompt user for a password during vi execution

Solved!
Go to solution

Hi,

 

I have a  test automation application which has a security requirement. when the application runs, if any operator tries to modify any input parameters, the application should ask for a username and password and should accept the modification only if this person is authorised to do it.system should allow to add users/change passwords by a master user.

 

 how can this be done in labview 8.6? 

 

Regards.

0 Kudos
Message 1 of 4
(3,121 Views)

What you're proposing is fairly complex. Possibly a better solution is to have the controls that you require to be protected, disabled by default when the application runs. Have a login button that triggers a dialog box and verifies a user/password which in turn enables the controls.

 

0 Kudos
Message 2 of 4
(3,117 Views)
Solution
Accepted by topic author pcs82

Hi pcs,

 

- use the event structure to register for value changes of any controls.

- create a (sub)VI that asks for username and password.

- create a (sub)VI that compares given credentials with a database.

- create a (sub)VI that allows for editing that database.

- I would suggest atleast 3 operator levels: "generic, no passowrd", "operator", "admin". Admin is allowed to change the user database…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 4
(3,116 Views)

I ve implemented this model in a scaled down version. Thanks!!

0 Kudos
Message 4 of 4
(3,014 Views)