Quantcast
Channel: Counter/Timer topics
Viewing all articles
Browse latest Browse all 1271

Digital filtering on Gate for Linear Encoder

$
0
0

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?


Viewing all articles
Browse latest Browse all 1271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>