08-27-2009 08:30 PM
Hi,
My version of Labview is 8.6.
I'm using a 'tab control' to create a GUI of two tabs. I'm trying to protect one of the tab for authorized operators only. So what's the easiest way to do that? I don't actually need another password GUI but just a simple pop-up will be great. Alternatively, what else could I use to achieve the protection?
The structure of my program is a case selection within a while loop. The while loop is for button detection as well as continuous run while the case structure is for selection of the modes.
I'll appreciate your advice a lot.
Cheers,
Nicholas
Solved! Go to Solution.
08-27-2009 09:08 PM - edited 08-27-2009 09:17 PM
Put a string indicator on the tab they can always get to. Use and Event structure in a loop to detect the vale change event on that string. If the string matches the secret password, enable the other tab. If it doesn't, disable the other tab.
Initialization code for your program should clear the string by writing an empty string to the Value(signalling) property node of that string.


08-31-2009 09:03 PM
Hi Ravens,
Thanks a lot for the simple but decent solution. Then may I ask you two further questions?
1. What's the simplest way of replacing the typed-in numbers with '*****' concurrently?
2. How did you create the ' Page Enable' property node? Because I was using an LED indicator to show a boolean result. I wanted to disable&grey the LED while it's in IDLE state. I was trying to create something similar to the enable note in the property node list but seemed it was not available there. Could you please show me an example of that? i.e. an 'boolean indicator enable node' that accepts an enum input to control
Thank you.
SSR
08-31-2009 09:06 PM
SSR_Nicholas wrote:
What's the simplest way of replacing the typed-in numbers with '*****' concurrently?
Right click on the indicator on the front panel.
There should be some options like 'normal' , 'hex', 'password' .... select 'password'
08-31-2009 09:11 PM
08-31-2009 09:50 PM
To get to Page enable, go down the path I show there.
Tab control property node, Pages
Index Array on pages so you get a page instead of an array of pages.
Right click the page wire and get property node for page enable.
For a Boolean, it is slightly different and easier. Right click on the boolean and Create > Property Node. Pick the Disabled property. Then you can create a constant of that. In LabVIEW2009, the property is an enum. Pre 2009, it is a constant where 0 is enabled, 1 is disabled, 2 is disabled and grey.
08-31-2009 10:24 PM
Yup..I have explored that. But the problem is that the 'disable property node' is a source. It only has one output note. i.e. I couldn't connect the constant enum to it to control over.
Thx.
SSR
08-31-2009 10:26 PM
09-07-2009 01:52 AM
Hi Ravens,
The previous example is pretty good. But I am thinking make it better by prompting a window for the user to input password once he clicks the grey-out(by default) tab.
I was trying to find something in the 'invoke node' but seemed no available one. Could you please show me an example of how to do that?
Cheers,
Sirui
09-07-2009 02:03 AM
maybe this will help?
I made it to where it worked off of a constant path so you would have to change that, but you may be able to make this a sub-vi and have it pop up