LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Login system with multiple user.

Hi lavas,

I was creating a user login system using username and password, but there something less with the functions. Here below description of the system.

  1. User should using an admin account (username:admin/password:123456) to login at the first time.
  2. When the user was login and stand as admin position, user panel will appear and display 3 buttons which add, delete and view.
  3. When add button selected, add user panel will appear and display 2 empty string controls which username and password. To add other user, he/she just insert username/password that they want, press add user button, those data will automatically inserted into the table and user admin will back to user panel.
  4. When delete button selected, delete user panel will appear and display 2 empty string controls which username and password. To delete other user, he/she just insert username/password that they want, press delete user button, those data will automatically deleted from the table and user admin will back to user panel. But IF username/password is not relevant with table’s data, message box will appear (telling that username/password inserted are not available) and the string control will be empty.
  5. When view button selected, user list panel will appear and show user table where username and password are stored. This table is readable-only. Press done and user admin will back to user panel.
  6. When it done with editing user account, the user admin can log out and try to login with other user account. The username and password inserted for authentication will be match with the data inside the user table. Message box will be appearing to notify user IF username and password are wrong.
  7. Username/password cannot be empty. IF username/password is empty and login button pressed, message box will appear (telling that please insert your username or password).

Hope anyone may solve this.

 

Thank you.

Message 1 of 8
(6,316 Views)

Sounds like a homework assignment. What have you tried?

0 Kudos
Message 2 of 8
(6,312 Views)

show your effort.. and ask.

post your vi what you have try.,

0 Kudos
Message 3 of 8
(6,304 Views)

Here is my basic programs.

0 Kudos
Message 4 of 8
(6,263 Views)

Don't have multiple event structures set up like that in one VI.  They are both sharing a common loop.  That outer loop won't iterate until the inner loop completes up top, and an event occurs on the event structure down below.

 

Your VI response will probably feel hung from time to time as the loops wait for one event structure or the other to complete.

0 Kudos
Message 5 of 8
(6,252 Views)

So what I suppose to do then?

0 Kudos
Message 6 of 8
(6,246 Views)

Either use one event structure that contains both.  Or put the two event structures in two different while loops.

 

I would try the first option since it seems like the events in both structures are related to each other.

0 Kudos
Message 7 of 8
(6,234 Views)
0 Kudos
Message 8 of 8
(6,224 Views)