01-03-2025 05:24 AM
Hi everyone,
I created this Vi, basically it does some login operation like Adding user and deleting, changing the password it works somewhat okay, but I am not getting smooth transition between each button.
anyone tell me what is wrong.
used:
LABVIEW 2018
01-03-2025 05:30 AM - edited 01-03-2025 05:49 AM
Hi Basavaraj,
@Basavaraj093 wrote:
anyone tell me what is wrong.
Yes.
This is wrong:
You created nested event structures within 2 levels of while loops!
Your whole VI structure is wrong!
There should be only ONE while loop with exactly ONE event structure inside…
The remaining code also needs a lot of improvements!
01-03-2025 08:32 AM
Why I used a combo box is that when admin adds user details the usernames will store in combo Box,
The same combo Box will be there on login page.
Admin just select the username and delete that.
01-03-2025 10:35 AM
Your code is 10 time more complicated than it needs to be. All you need is a single toplevel loop, a single event structure, and a proper state machine architecture with the shift register anchored on the toplevel loop. You probably don't need any local variables.
An Aztec pyramid of a case structure inside a case structure inside a case structure inside an event structure inside an event structure inside a while loop inside an event structure inside a while loop is NOT reasonable! (even if you like turducken for breakfast!)
Even if you set all events to not lock the panel (as you did), you get serious dataflow constipation, race conditions and lockups. In fact for a LabVIEW beginner, you might even start without any event structures at all.
You need to delete ALL code (except for the terminals) and start from scratch. This is a simple problem and it is likely that would would find something close by doing a forum search.