04-12-2011 08:16 AM
Hi Everyone.
I am doing project on gesture recognition with touchpad. I need to find out the total time of completion of gesture on touchpad. For that I need to calculate total time of cursor movement on laptop touchpad. When cursor starts moving, that time I need to capture time and when it stops also. I need to find out difference between the start time and stop time. Please help me to do this task. Presently I am trying with event structure and timed structure but I am getting only present time only. I tried with counter but unable to get the difference.
04-12-2011 09:39 AM - edited 04-12-2011 09:40 AM
You're on the right track with the event structure. Look at the attached VI. See how the time of each click down and then click up are stored in the array. You can subtract any consecutive values to get the difference between clicks.
BTW, keep in mind that the first click stored is you starting the VI and the last click time is you stopping it.
04-12-2011 09:50 AM
WHY are you double posting the same question you already received an answer for???
http://forums.ni.com/t5/LabVIEW/How-to-calculate-total-time-of-mouse-movement/td-p/1521084