取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 12 条)
5,618 次查看
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 项奖励
2 条消息(共 12 条)
5,588 次查看
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 项奖励
3 条消息(共 12 条)
5,577 次查看
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 项奖励
4 条消息(共 12 条)
5,571 次查看
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 项奖励
5 条消息(共 12 条)
5,505 次查看

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

6 条消息(共 12 条)
5,501 次查看

Dear R-R,

Thanks for sharing,

Mathan

0 项奖励
7 条消息(共 12 条)
5,498 次查看
    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 项奖励
8 条消息(共 12 条)
5,468 次查看
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 项奖励
9 条消息(共 12 条)
5,429 次查看
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 项奖励
10 条消息(共 12 条)
5,414 次查看