LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

touch sensor

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 

0 Kudos
Message 1 of 3
(2,622 Views)

Sure, you just have to program it Smiley Wink

 

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.

0 Kudos
Message 2 of 3
(2,617 Views)

Duplicate post:  http://forums.ni.com/t5/LabVIEW/touch-sensor/td-p/1914813

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 3 of 3
(2,611 Views)