LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Password for labview program

Hi all,

I am developing a labview program for a high
power microwave device. The final program will
be running stand alone on a pc attached to the
microwave device in a laboratory. To ensure
safety, I am wondering if I can set up a password
to the labview program at start up so only
authorised people can use it? Or if there is
other way to do that. Any comment will be
greatly appreciated.

Thanks.

Regards

Hank


Sent via Deja.com
http://www.deja.com/
0 Kudos
Message 1 of 3
(2,535 Views)
In article <94obst$jn8$1@nnrp1.deja.com>,
heng28@my-deja.com wrote:
> Hi all,
>
> I am developing a labview program for a high
> power microwave device. The final program will
> be running stand alone on a pc attached to the
> microwave device in a laboratory. To ensure
> safety, I am wondering if I can set up a password
> to the labview program at start up so only
> authorised people can use it? Or if there is
> other way to do that. Any comment will be
> greatly appreciated.
>
> Thanks.
>
> Regards
>
> Hank
>
> Sent via Deja.com
> http://www.deja.com/


I am pretty sure that you can do that by using a case loop outside of
your main program. You can set it up so that user(s) will have to
enter a string (which would be password) before he/she can get to the
front panel of the main program.

Within this vi, you can have an array of strings such that users can be
given different passwords (or level of authority) for more security.

After the user enters the password, you can compare the user input by
using equal function in the comparison palette (make sure the password
list is case sensitive or stuff like that or you'll have to convert all
the user input string to either upper or lower case if you want to save
some trouble). If the result of comparison is true, then they can get
into the main program, or else the program will quit.

You can also put in looping structure to make it more fancy such that
each user can be given say 3 chances to enter the correct password...

If you want to go really fancy, you could also try to put in a data
file that stores all the passwords in binary format (requires a little
conversion, of course) in a directory of the target machine that you
know exist (say WINDOWS or WINNT), and include the data file as part of
your instalation disk content, point the installation destination to
that directory. In your password program, find the target machine
operating system and then look for the file from there.

Hope it helps. If you have any questions, please e-mail me at
thuang@ewi.org, and I'll try to e-mail you a copy of my code.


Sent via Deja.com
http://www.deja.com/
0 Kudos
Message 2 of 3
(2,535 Views)
Hi All,

Just to add my 2 cents. You can also use the password option in a string
control. It will only show * and not the password itself (just like
windows) for add security.

-Paul
0 Kudos
Message 3 of 3
(2,521 Views)