LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

password protecting one tab on a tab function

Hi,

I am trying to place password protection on one tab of a tab function. Can anyone help me with this?

Many thanks,

Cooky
0 Kudos
Message 1 of 5
(2,909 Views)
I assume that you are only password protecting it from users, not developers. If this is true, you can use the event structure to filter the events that would select the tabs in a tab structure (key-press or mouse-click). You could then pop-up a dialog to enter the password, and allow the selection of the desired tab or change the value to the old value.

Let me us know if you don't know how to do any of these steps and I would be glad to help.

Bob Young
0 Kudos
Message 2 of 5
(2,894 Views)
There are many ways to do this. Another possibility would be to enable/disable the secret tab depending on the state of a password.

In the attached simple demo (LabVIEW 7.0), the third tab is disabled unless the correct password is entered. If there is no activity for one minute, the secret tab will automatically be disabled once again.

(Of course the password could be also obtained using a password dialog after pressing a button named "Administrator Login" for example. In a real world example, you might also want to encrypt the password strings or use a more advanced authentication algorithm.)
0 Kudos
Message 3 of 5
(2,885 Views)
Hi Bob,

Thanks for your reply. You're correct that I only wish to limit access to users and not developers. I'm not familiar with event structures, so could you help me with the block diagram I'd need to use.

I appreciate your help!

Cooky
0 Kudos
Message 4 of 5
(2,863 Views)
Hi,
hopefully this will help :
http://zone.ni.com/devzone/learningcenter.nsf/webmain/1dcac8110c5c93df86256c8d0054e158?OpenDocument

I've also attached a quick example.

Thanks

Sacha Emery
National Instruments (UK)
// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 5 of 5
(2,837 Views)