LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

My UI controls seem to be disabled during a loop

I have a while loop, and my stop control seems to behave like it's disabled when I enter the loop.
 
I have put in a wait for front panel even and have given as much as two seconds to register the
stop.  I can see that the two second wait happens, but my stop button does nothing.  There is
no visual indication that the button press was registered.  I also have
an event node monitoring that close button.  I put in a dialog box in that even, but it doesn't
come up.
 
Any ideas?
0 Kudos
Message 1 of 5
(3,034 Views)
Sounds like you have a subvi or another operation that is running.  If a subvi is running the UI will not be checked.  If you need to stop the sub vi from the UI you may have to programically control the operation example in Controlling Front Panel Objects
0 Kudos
Message 2 of 5
(3,022 Views)
You'll probably get a faster resolution to your problem if you post your code.
0 Kudos
Message 3 of 5
(3,017 Views)
Post a picture, please.
0 Kudos
Message 4 of 5
(3,014 Views)
Is the terminal of the stop button INSIDE the loop?
 
(If you wire it from outside the loop, it will never get read by the code during execution of the loop. Watch your diagram with execution highlighting and you'll see how dataflow works. ;))
0 Kudos
Message 5 of 5
(3,011 Views)