Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

NI PCIe-6612 Digital filter

Good morning,

I'm using a PCIe-6612 for collecting positions from a couple of angular encoder that produce pulses with a max frequency of 240kHz. The minimum edge length of signal is guarantee to be at least 0.100 us. Unfortunatly PC is located in an environment that has a lot of electrical noise. I've adapted several strategies to avoid common and differential noises but some kind of HF noise is still coming to NI board and sometimes count become not consistent...

I've found a poor documentation and no code samples for these functions, that I suppose can help me:

DAQmxSetCIEncoderAInputDigFltrEnable

DAQmxSetCIEncoderAInputDigFltrMinPulseWidth

DAQmxSetCIEncoderAInputDigFltrTimebaseSrc

DAQmxSetCIEncoderAInputDigFltrTimebaseRate

and complementary functions for channel B.

 

For sure first function enables digital filtering, with the second one I suppose that you can setup the minimum edge width but the measurement unit of parameter "data"  is not specified, I would like to setup minimum rate to 0.75us...

Furthermore I absolutely can not figure out how to use Timebase Source and Timebase Rate functions...

Can anyone help me???

Consider that software is developed with VisualStudio in "c".

Many thanks in advance

 

0 Kudos
Message 1 of 2
(2,865 Views)

Hi,

you can find the reference guide for C at this link --> http://zone.ni.com/reference/en-XX/help/370471AG-01/

where you can find how to use those functions.

 

In this forum http://forums.ni.com/t5/Multifunction-DAQ/Using-Debouncing-Filter-with-NI-6229-and-NI-DAQmx-ANSI-C/t...

you have also the same discussion with some examples.

Regards.

0 Kudos
Message 2 of 2
(2,824 Views)