06-11-2012 02:55 PM
I am developing user login software which I would like people to use so that I can monitor when they are using a piece of equipment attached to the computer. Currently I have everything written; it checks the username vs an encrypted password, it log people out if they are inactive for too long, and of course it logs the time in and time out of each user.
The problem that I am having is that I would like the program to prevent any interaction with anything other than itself until someone has logged in, and then restore normal control after they have logged in. How might one do this?
Thanks,
Adam
Solved! Go to Solution.
06-11-2012 03:25 PM
Adam,
Are you talking about limiting interaction to one VI within the LabVIEW environment or preventing access to other applications or the OS? If LV only, then make the password VI modal. VI Properties >> Window Appearance >> Customize: Select Modal.
Lynn
06-11-2012 03:27 PM
Sounds like you could use a state machine. At a minimum you need a state variable. When no one is logged in don't run any code except the login. When someone is successfully logged in run the code. A state machine would certainly allow this. A single state variable may work as well.
What is your basic architecture now?
06-11-2012 03:38 PM
My current architecture is actually a state machine, and I do want to limit access to other programs running on the OS, not just LabVIEW.
06-11-2012 03:51 PM
Access to the hardware or access to your application? Access to the hardware is a bit more challenging and I am not sure if it will be possible.
06-11-2012 06:16 PM
I wound up solving my issues by using the following:
http://zone.ni.com/devzone/cda/epd/p/id/1539 which allowed me to keep the cursor only within the bounds of the front panel, and
http://forums.ni.com/t5/LabVIEW/Disable-Win2k-keys-Alt-Tab/td-p/53164 which keeps one from tabbing away from the application.
Together these allow me to control whether or not one can interact with other applications. CTRL+ALT+DEL still works so the program can also be shut down if it ever needs to be.
Thanks,
Adam