LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with counting number of clic with initialize mouse vi

Hi,
 
I want the vi stops when the user clics several times with the mouse. I use initialize mouse vi instead of event structure for other reasons (I can't use it).
I intented to count the number of clics and when this number of clics occur, the vi stop. But the vi don't work, it stops at the first clic although when i highlight execution it seems to work as I want.
 
I send here the vi.
If someone could help me, thanks in advance.  
0 Kudos
Message 1 of 5
(2,726 Views)
Hi,

The problem is the execution time, if you push the mouse button your program will execute number of times before you lose the button agian. Even if you push it realy fast.
I made some changes to your code there i wait until button is released befor continuing.

Regards

/Thomas
0 Kudos
Message 2 of 5
(2,723 Views)

hi there

i'm just curious: why can't you use the event structure?

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 3 of 5
(2,713 Views)
Thanks for your solution, I see now where is the problem.
0 Kudos
Message 4 of 5
(2,706 Views)
Chrisger, it is because I use sequence structure with many times I have to require the user to clic on the front panel before advancing to the next sequence. In this case I can't use many event structures. 

Message Edité par nousome le 09-14-2006 10:34 AM

0 Kudos
Message 5 of 5
(2,705 Views)