11-24-2008 04:42 AM
Hello!
I'm using USB-6221 with the ANSI C library, and want to use debounce filters for the two counter inputs.
As I understand, I should use the functions DAQmxGetCIFreqDigFltrEnable() and DAQmxSetCIFreqDigFltrTimebaseRate().
But I jusst get the error -200452 as result (DAQmxErrorAttributeNotSupportedInTaskContext).
I initiate a counter with this, and it works fine:
DAQmxCreateTask("", &Ctr0_Handle);
DAQmxCreateCICountEdgesChan(Ctr0_Handle, "/Dev1/ctr0", "", DAQmx_Val_Rising, 0, DAQmx_Val_CountUp);
DAQmxSetCICountEdgesTerm(Ctr0_Handle, "/Dev1/ctr0", "/TestRigg/PFI12");
DAQmxStartTask(Ctr0_Handle);
Both of these function calls returns error -200452:
DAQmxSetCIFreqDigFltrEnable(Ctr0_Handle, "/Dev1/ctr0", true);
DAQmxSetCIFreqDigFltrTimebaseRate(Ctr0_Handle, "/Dev1/ctr0", 0.00256);
What am I doing wrong?
Thanks
01-17-2009 07:59 PM