LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

username/password/security Level

I am trying to put security on my application. I am storing usernames, passwords and security levels in an global array of clusters. Everything works fine, except that when i shut down labview and start over, my global is empty. is there a way to save a blobal before shutting down?. Any help is appreciated.
 
Thanks
Mike 
0 Kudos
Message 1 of 4
(3,073 Views)

Hello Grman,

 

There are many ways to make that I usually save in XML files before the shut-down and read from XML file before start the aplication. But you can make an encriptation and save in a normal TXT file.

Regards

0 Kudos
Message 2 of 4
(3,060 Views)

Hello!

This is true.  Global variables store the state of some variable during execution of your LabVIEW programs.  When LabVIEW ends, the state is tossed.  If you are planning on storing them between sessions you should consider writing them to some sort of file.  If it is a security program file you are working with, using a basic text file might be less than ideal -- the idea of encrypting the file is good in this case.  Please let us know if you have any additional questions!

Travis M
LabVIEW R&D
National Instruments
0 Kudos
Message 3 of 4
(3,035 Views)
If your global variables are possibly changing when you run your vi, you should write the values to a file and then read them upon restarting the vi as Travis suggested.  However, if the globals are permanent, that is you create them with a value once and it is never changed, then you can right click on the variables and select Data Operations - Make Current Value Default, then save the global vi.  Next time you open it, those values should still be there.
- tbob

Inventor of the WORM Global
0 Kudos
Message 4 of 4
(3,028 Views)