08-12-2008 03:30 PM
08-12-2008 03:50 PM
08-12-2008 03:58 PM
08-12-2008 05:31 PM
RSibagatullin wrote:
Hmm,
I just checked the button and it says "Latch when pressed". Will changing event to "Value change" help me?
08-12-2008 06:10 PM
08-13-2008 07:16 AM
It does sound like the button does not get processed... Can you post your code?
R
08-13-2008 11:35 AM - edited 08-13-2008 11:38 AM
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
08-13-2008 11:42 AM
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".
08-13-2008 12:09 PM
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. 🙂
08-13-2008 01:17 PM
Hi,
I have attahched the code of the event trigger. The button by itself is outside the while loop.
Thanks.