02-20-2023 08:06 AM
Hello,
My program gets stuck in an event structure. The program involves a dynamic event. I've attached a demo here of the problem. The BUTTON & EVENT button works fine but buttons 2, 3 and 4 get stuck on their second press. Any help would be much appreciated. Thanks.
Solved! Go to Solution.
02-20-2023 09:55 AM
If you have two event structures in the same loop, the loop cannot go to the next iteration until both events have fired. I would suggest to fix these glaring dataflow problems.
02-20-2023 10:13 AM - edited 02-20-2023 10:14 AM
OK, now I am at a computer where I can look at your VI.
What a mess!
I recommend to start with some basic tutorials.
02-20-2023 10:25 AM - edited 02-20-2023 10:27 AM
Split your while loop into two parallel independent loops. I've drawn (rather expertly it has to be said 🙂 ) an idea as to where the boundaries should lie.
You'll have to work out a way to stop the second loop which, in this example, does not include a stop button.
i.e. Get rid of pink. Blue and Red need to be while loops of their own.
Actually, move the destroy event node OUT of the while loop, my bad.
02-20-2023 07:01 PM
Intaris,
Thanks for the help. That worked great.
02-20-2023 07:04 PM
I split it into two while loops. works well.