RSibagatullin wrote:
Hmm,
I just checked the button and it says "Latch when pressed". Will changing event to "Value change" help me?
Hi RSibagatu,
This article (Using Events with Latched Boolean Controls) explains the caveats about using Boolean controls with Event Structures.
(It sounds like you might need to put your control inside the event case.)
Best of luck,
Kevin S.
Applications Engineer
National Instruments
For the frequent flyers here on the Forum....
I have personally wittnessed a sticking boolean* both in LV 8.2 and LV 8.5. 8.5 seems much better but I have still seen them stick in LV 8.5.
Ben
* Its a real pain when you press the emergency stop button, it sticks and your customer is standing there giving you a puzled look. The good news was there was a complete mechanical back-up safety system implemented "just in case".
Just for completness, I am wondering about "mouse down" and "value changed" in this context.
Is there protection in the code or could there possibly be a race condition? I assume that "mouse down" occurs before "value change", so it is conceivable that a mouse down event could leave the boolean unread for the current event. I have not done any tests, just curious. 🙂
Hi,
I have attahched the code of the event trigger. The button by itself is outside the while loop.
Thanks.