08-29-2019 03:24 AM
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?
Solved! Go to Solution.
08-29-2019 07:33 AM
Solved using DAQmxSetSampClkDigFltrEnable
And DAQmxSetSampClkDigFltrMinPulseWidth