LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

exit from event/loops combinations

Hello all !!

I think this is a very simple problem to solve, I tried to find the solution on the forum but ... . I work with Labview since 2 years and I think I made ​​much progress after developing a complex program to control a nonlinear optical setup, but here I block!

To summarize, I have a problem with the possibility to exit from of a loop/while structure inside a event structure. The Stop button is never activated, while a timing function is used to wait the mouse down event in this button ...

Does anyone have any experience with this question ?

Thanks
D. Gindre

0 Kudos
Message 1 of 2
(2,345 Views)

You've made a couple of fundamental mistakes. First, it's generally considered bad form to place a while loop inside an event. Considering that you did, your second mistake was not changing the default behavior of your Start event from "Lock front panel until this event case completes".

 

I would also suggest using the Value change event and placing your Booleans actually inside the event.

0 Kudos
Message 2 of 2
(2,335 Views)