03-15-2012 02:17 PM
Hi, im hoping someone could help me with what I feel should be a simple process.
Are there more options with the touch sensor using labview other than simply if pressed/release or bumped, do something? Can they be used to say if bumped once do A, if bumped twice, do B etc?
Many thanks
03-15-2012 02:52 PM
Sure, you just have to program it
I imagine you are talking about a momentary switch that would send a signal to LabVIEW. If you want to do a case for 1 tap and a different case for 2 taps, you need to figure out how you will count the taps.
If you wanted to measure two taps or more you could start a timer on the 1st tap and count any additional taps for a determined amount of time. At the end of that time count the number of taps and go to the case for that number of taps. But you also have to be careful about how you you count the taps. You dont want to hold the button and have that count as multiple taps. So you might look at peak detection or something that only counts a tap as the signal goes high, but does not count again until the signal goes low before counting a high signal again.
Just think through what you would need to do to count your taps and try to make LabVIEW do it. Post some of your code attempts and ask questions.
03-15-2012 02:59 PM
Duplicate post: http://forums.ni.com/t5/LabVIEW/touch-sensor/td-p/1914813