08-10-2016 12:36 PM - edited 08-10-2016 12:40 PM
Hi guys, i have a problem with my vi. Let me explain it. I am trying to create a login screen. It takes user name and password. Also, i create a text file, i write valid user names and passwords in to the text file. When i press confirm button (after i enter the user name and password in to the login screen), pogram matches the user name and password, if they are true then led light open. It works but when i try to press confirm button more than 2 times, it fails. Actually not give an error but confirm button blocked so, i can not make trial more than 2. What are the possible reasons for that?
Solved! Go to Solution.
08-10-2016 12:52 PM
Can you post for LV 2012?
08-10-2016 12:59 PM
Is it possible on version 15 LV? I mean without downloading version 12. But i can post the screenshoot.
08-10-2016 01:02 PM
Move Led outside inner For Loop.
Ben
08-10-2016 01:05 PM
@Omnom wrote:Is it possible on version 15 LV? I mean without downloading version 12. But i can post the screenshoot.
It looks like Ben has you covered, but you can go to File >> Save For Previous Version... in order to post for a previous version.
08-10-2016 01:08 PM
It didint work. Can you explain more clearly please?
08-10-2016 01:08 PM - edited 08-10-2016 01:10 PM
Still i can not enter user name and password as much as i want. It blocked after two trials.
08-10-2016 01:11 PM
The led
Is only updated with anew value when you have a match. It is never given a new value when it is false. Moving the led outside the inner while loop and wiring thresult of your "match" logic will update for both the match and no-match situation.
Put you code in execution hightlighting mode (turn on the lightbulb for the diagram) and watch where the data goes and when a new value is passed to "led".
Ben
08-10-2016 01:14 PM
oooww thank you, there are always new things to learn 🙂
08-10-2016 11:46 PM
Steps which will help you to create a Login Details Easy.
1.Create a Cluster which contains 1D Array of Names,1D Array of Passwords and 1D Array of Previleage Level.
2.Save the data in a .bin format which user cant edit.
3.During Verification use the Names Entered by the user and search in Names Array if u get the index values >=0 it means that name exists
4. Based on the index from previous step get the index element from password array and verify with the password entered by the user.
Edit, change password everything can be handled by the same.