Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I enable the counter debounce function on a USB-6229 device.

 I'm using LabVIEW 8.2.  Calling the property node CI.CountEdges.DigFltr.Enable generates an error that my hardware does not support this property.  The hardware documentation lists 4 debounce settings: 125 ns, 6.425 µs, 2.54 ms, and disable.  Using the example vi "Meas Dig Frequency-Low Freq 1 Ctr.vi" to measure the pulse rate of a flow meter operating between 5 and 300 Hz, I'm getting results that occasionally match the rate displayed on the oscilloscope but more often range between 30 kHz and 5 MHz.  The debounce filter seems like the perfect solution but I haven't been able to figure out how to enable or set it.

0 Kudos
Message 1 of 4
(4,408 Views)

If you are selecting "CI Pulse Freq", you are likely getting an error because that is not supported for the 6229.  

You will likely get error -200431: 

Possible reason(s):

Selected physical channel does not support the measurement type required by the virtual channel you are creating.

Create a channel of a measurement type that is supported by the physical channel, or select a physical channel that supports the measurement type.

Property: CI.MeasType
Requested Value: Pulse Frequency
Possible Values: Frequency, Period, Pulse Width, Semi Period, Two Edge Separation, Position:Angular Encoder, Position:Linear Encoder, Count Edges

Task Name: _unnamedTask

 

So, basically you can do debounce filtering and if you try something like 'CI Cnt Edges', since that is a task that is available for the 6229, but you will not be able to do the CI Pulse Freq even without the debounce filtering. 

 

Hopefully that helps.

0 Kudos
Message 2 of 4
(4,388 Views)

Thanks Charles.  That certainly opens up the road for a new approach.  I'm a new user and I noticed with this first post that the system assigned an icon to my ID that looks like a T-bone steak.  Is this their way of identifying "fresh meat" on the site?

Message 3 of 4
(4,382 Views)

you can go to my settings >> Avatars and change it there, haha, if you feel like you are being singled out

0 Kudos
Message 4 of 4
(4,359 Views)