Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Digital filtering on Gate for Linear Encoder

Solved!
Go to solution

Hi All

 

Using the C API for DAQmx 19.1 on a PCI-6601

 

I am trying to apply a digital filter on the gate input for my X1 counter task.

 

Linear encoder channel is created using DAQmxCreateCILinEncoderChan

The sample clock source (gate) is set to PFI30 using DAQmxCfgSampClkTiming

Filtering is setup for A and B inputs using:

DAQmxSetCIEncoderAInputDigFltrEnable

DAQmxSetCIEncoderAInputDigFltrMinPulseWidth

DAQmxSetCIEncoderBInputDigFltrEnable

DAQmxSetCIEncoderBInputDigFltrMinPulseWidth

 

I then want to setup filtering on the gate, but there is not specific method or property for this, for CountEdges there is DAQmxSetCICountEdgesGateDigFltrEnable but this returns error -200452 when I set it to true.

 

Is it possible to simply setup a filter on the physicl input PFI30 without linking it to a specific channel or task?

 

Thanks,

 

Simon

 

How do I setup digital filtering on the Gate signal (PFI30) for this task/channel?

0 Kudos
Message 1 of 2
(2,046 Views)
Solution
Accepted by topic author Simon_Stenfeldt

Solved using DAQmxSetSampClkDigFltrEnable

And DAQmxSetSampClkDigFltrMinPulseWidth

 

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