11-14-2013 09:40 AM
Understand this whole reading passwords from a human readable ASCII file is a huge no-no. Sure under some circumstances it's fine I just wanted to make it clear that a production program, or a program that actually needs some level of real security should never do this. If this is right for you don't let me stop you.
In the real world (medium to large scale programs, production programs, programs where security is a must) you shouldn't really be handling the passwords at all. In the past I've used Windows security, and group policies. So the user logs in with their user name and password, then my application just reads what the current user's privileges are and opens that part of the program up. Here my program doesn't deal with users, or passwords, or privileges it just asks Windows what it should do.
If Windows security isn't an option for some reason, NI also sells the DSC toolkit which has alot of neat stuff, one of which is user control.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
11-15-2013 05:50 AM
Hello apok, I have tried to make your .png file. How do you combine your 3 arrays in your Front panel to 1 array in your block diagram? I have made it like this. (see attachment). It is not working and I don't know why. Have you any idea.
Thanks anyway.
11-15-2013 08:58 AM
I don't know why the for-loop is used, so I left it out:
But as Hooovahh already said, you better make the username/password crypted.
11-15-2013 09:40 AM - edited 11-15-2013 09:49 AM
@marijnvrooij wrote:
Hello apok, I have tried to make your .png file. How do you combine your 3 arrays in your Front panel to 1 array in your block diagram? I have made it like this. (see attachment). It is not working and I don't know why. Have you any idea.
Thanks anyway.
the 3 arrays were never combined on the front panel, it was made as a constant on the block diagram and seperated by the index array function (no need of a for loop? RubeG brain fart!). The 2D string array constant example was to be read from a spreadsheet file....
your example is indexing 3 arrays when you bundled only 2?....(please, no need of for loop. 2 yr. old example i had in my folder, must update)
again, this is used as a non encryptic example... suggest using outaw's .ini lookup as it is easier to implement (NI example under configuration file).
11-15-2013 09:47 AM
the 3 arrays were never combined on the front panel, it was made as a constant on the block diagram and seperated by the index array function (no need of a for loop? RubeG brain fart!). The 2D string array constant example was to be read from a spreadsheet file....
Oh now I see, I just checked the one from marijn: http://forums.ni.com/ni/attachments/ni/170/785580/1/Read%20from%20array.PNG
That's why I was confused, haha