UI Interest Group Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Password Protected

Hello,

I am new to Labview. Can anyone here tell me how to set a password to protect my user interface? For example, only after you key in the correct password then you can control and with the data.

0 Kudos
Message 1 of 6
(4,134 Views)

Hello tangjh88,

The simples way is: Labview / Example Finder / "logins" - Login dialog.vi

There you can see an example how to handle useraccounts. My recommendation is serialize the user database with encryption to hard drive, so the user accounts can be loaded and saved when you leave your application.

If you want to control the user interface controls and indicators, you should use Control - Disabled property of the Control class.

(Right click on a control or indicator , create property node - disabled.)

I hope it helps!

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 2 of 6
(3,135 Views)

Thank you D60 for your prompt reply and recommend.

0 Kudos
Message 3 of 6
(3,135 Views)

Hello D60, I could not find the exmaple. The Error: The NI System Websever not running. Do you have the example? Can you upload it? Thank you.

0 Kudos
Message 4 of 6
(3,135 Views)

Hi tangjh88,

Disable the controls on the front panel by using DISABLE property node so that the user cannot edit the values. Maybe you will have a special button for enabling all the controls, you can use here event structure to handle the task.

0 Kudos
Message 5 of 6
(3,135 Views)

Ok. Thank you kurat for your reply.

0 Kudos
Message 6 of 6
(3,135 Views)