LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Username Password authentication- Help needed !!!

Hello people..

I have recently undertaken some project which requires user authentication ,I have made a test VI from collecting some pieces of examples.

Apparently there are some issues about this VI which I made

 

  1. Im unable to change the username and password in the table, no matter how many times I update and save them they just still remain the same.Please tell me how do I change the tables permanently.
  2. The file that I write as text keeps prompting me to save the file as textfile no matter what I give in the path.I just dont want that I just want the file to be saved as a particular file in my harddrive without being prompted for name and path..
  3. As you have noticed in my VI.the vi closes to open a new one if the username and password are right.I just want the login window to close after I enter the right username and password.


Please somehow if you could do that for me it will be of great help

 

Thank you 

Message 1 of 7
(4,987 Views)
You did not attach your VI so we cannot see what you are doing.
Cory K
0 Kudos
Message 2 of 7
(4,984 Views)
You should post your code as all of these problems seem pretty simple to implement and it sounds like you've made some basic mistakes. Without seeing what you've actually done, it's hard to recomend any specific fixes.
Message 3 of 7
(4,982 Views)

Im really sorry ..

I forgot to attach.here it is 🙂

0 Kudos
Message 4 of 7
(4,945 Views)

1.  If you make changes to a front panel item of the VI and want to make those changes permanent, you need to right click on the control and select Make Current Values Default and then save the VI.

2.  Your front panel path control is empty.  If it is empty when you run the VI, then it will pop up a dialog asking you what file you want.  To prevent that, place a file path in the path control.

3.  Not quite sure what you are saying.  But you are using the Quit LabVIEW function which will shutdown LabVIEW completely.  You probably want to use a front panel close VI method on the current VI.  I don't know the exact way that looks at the moment, but if you search the forums, you should find an example.

Message 5 of 7
(4,937 Views)

I do not really get the code, tried to run it several times, can you explain it more please?

 

0 Kudos
Message 6 of 7
(4,605 Views)

@Bharath kumar wrote:
2. The file that I write as text keeps prompting me to save the file as textfile no matter what I give in the path.I just dont want that I just want the file to be saved as a particular file in my harddrive without being prompted for name and path.
3. As you have noticed in my VI.the vi closes to open a new one if the username and password are right.I just want the login window to close after I enter the right username and password.

 

 (2) Wire the path directly to the "open/create..." function. You are calling a dialog which accepts a folder path as input and a default name below. Don't wire a file path to it!
 
(3)  This is a subVI. I assume the front panel is not even opened during call (why should it???) so there is no need to close if afterwards. Simply call the other VI!
 
ALSO:
  • You are doing all this way too complicated. You don't even need a loop. Slice out the first colum, use search 1D array to find the user, the use the resulting index to get the password. (see snippet)
  • If you would use "stop if true" you would not need to invert the result of OR.
  • Why are front panel and diagram maximized to the screen??
  • Why are you trying to write to the file with each iteration of the loop. It is probably sufficient to log the match or fail only, not each iteration through the table.
 
Message Edited by altenbach on 05-29-2010 02:21 PM
0 Kudos
Message 7 of 7
(4,586 Views)