LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Boolean Button Sticks when using multiple touch screens

Hi
 
There seems to be a bug with Boolean buttons that are configured to switch until released.  I found the problem when using two touch screens (on 1 pc).  The button gets stuck down if the following occurs:
  1. Press and hold the Boolean button on touch screen 1.
  2. Press touch screen 2 while still pressing the button.
  3. Stop pressing both touch screens and the button sticks on.
To release the button you have to repeat the above.
 
The problem can be replicated using two mice plugged into the same PC to mimic two touch screens.
 
What I am actually trying to do is press a button on the screen and set a shared variable to true while the button is pressed.  When the button is released the variable is reset to false.  The shared variable is attached to the button using the data binding on the button.
 
I'm using LabVIEW 8.2 but the same problem exists in 8.5.  A simple example is attached.
 
Please help.
 
Thanks
 
Mark.
0 Kudos
Message 1 of 12
(5,421 Views)
I'll confirm this behavior.  I saw it in LV 8.5 running on a PXI-8196 with a USB mouse and a Planar USB touch screen monitor.  A touch on the screen while holding down the mouse on the button causes the button to blink, then stay on even after you release the mouse.  A touch elsewhere with the mouse while holding down the button with a mouse causes the button to stick on without it blinking.
0 Kudos
Message 2 of 12
(5,391 Views)
Did you find a way around it?  I've tried latch until released action but this gives me other problems with timing and writing of variables causing variable to lock on.
0 Kudos
Message 3 of 12
(5,380 Views)
No.  I don't know of anyway around it.  I think your test of using 2 mice showed something.  It isn't a touch panel problem, but a mouse driver problem.  One mouse interferes with the operation of the other mouse.
0 Kudos
Message 4 of 12
(5,374 Views)
Hi Mark,

This was reported to R&D (# 122059) for further investigation. I don't have a workaround for this issue but will let you know if I find one. Thanks for the feedback and let me know if you have any updates on this.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 5 of 12
(5,308 Views)

I have a developed a workaround for this problem.  Add an event structure into the vi with a Pane Mouse-up event.  Each time there is any mouse up event look for Boolean controls on the page and reset them to the default value.  To apply it to specific buttons, I've added a text string into the description of each button to reset then just reset the buttons containing the matching text.

Sounds simple but it took me a while to come up with that.

I will attach an example VI if I get a chance.

Cheers, Mark

Message 6 of 12
(5,304 Views)

Dear R-R,

Thanks for sharing,

Mathan

0 Kudos
Message 7 of 12
(5,301 Views)
    I have been seeing a similar problem using only one touch panel and no mouse.    My interface uses multiple boolean "switch until released" buttons contained in a tab control to mimic multiple pages.     I'm using cRIO with LVRT 8.5 along with the TPC-2012 with the LVTPM 8.5.    The buttons communicate with the cRIO via TPC messaging using the event structure.    I've designed GUI's in the past using basically the same block diagram but with all the buttons placed directly on the front panel without the tab control and never experienced the sticking.     Another thing I noticed is that the buttons only stick when touched off center or towards the extremities of where the panel registers the button press.   To revert the button has to pressed in approximately the same spot that caused it to stick.    I will increase the size of the buttons to see if it helps but I welcome any other suggestions.   
0 Kudos
Message 8 of 12
(5,271 Views)
I wasn't able to replicate this issue on my TPC. Can you attach a simple example of the behavior you experienced and steps to replicate the issue?
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 9 of 12
(5,232 Views)
Adnan Z
     Thanks for the response, I actualy couldn't replicate it with a simple program either so I've modified my original VI to run standalone and was able to repeat the problem.    I've attached the modified VI, it runs with no additional hardware, instructions are on the front panel that point to where the problem occurs most.      Basically when a button is pressed in a certain spot it sticks then inverts until pushed in the same area that caused it to stick.     I tried to aproximate the areas that caused the "sticking" with an *.        
0 Kudos
Message 10 of 12
(5,217 Views)