07-07-2025 09:58 AM
Hello,
I want to do a continuous loop, that changes the value of valves over and over again. I want to be able to stop this loop by pressing the boolean again and switch it to off. But once my loop is running, the boolean cant be pressed anymore.
Could you maybe help me?
Thanks so much in advance!
07-07-2025 11:19 AM
I'm guessing that you are also very new to LabVIEW (I know you are new to the LabVIEW Forum). Here are some suggestions to both help you in getting started with LabVIEW and in helping us to help you:
Bob Schor
07-07-2025 11:21 AM
Most likely, your event case is set to "Lock panel until the event case completes". This mean the user cannot interact with the front panel until that event case is complete, keeping you from being able to press the button.
Architecturally, there should never be a "long" running task inside of an event case. A basic state machine may be good enough for what you are doing.
07-07-2025 12:21 PM - edited 07-07-2025 12:23 PM
We don't "do" pictures of code because it is impossible to see the whole picture (sic) 😄
All we can see is a lot of "code smell" (yes, pictures can smell)
so please attach your actual VI and I am willing to take a look. I won't just widely guess because there can be tons of reasons.
07-07-2025 06:21 PM
@crossrulz wrote:
Most likely, your event case is set to "Lock panel until the event case completes". This mean the user cannot interact with the front panel until that event case is complete, keeping you from being able to press the button.
Architecturally, there should never be a "long" running task inside of an event case. A basic state machine may be good enough for what you are doing.
I see the "Lock panel until the event case completes" being frequently cited as the issue. I prefer to think of that as a symptom and not the problem. The real problem is simply that you aren't doing it right.