Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

FFCF273 error on NI 6624 card when using DAQmxSetCICountEdgesDigFltrEnable

I am writing a system using Borland Delphi.  I need to set the filter on a NI 6624 card to a value other than the factory-set default.  I am using the function DAQmxSetCICountEdgesDigFltrEnable.  If I set the filter value to 5.0e-6 or 1.0e-6 (representing 5 µs or 1 µs respectively), DAQmx accepts the value, but if I set it to 5.0e-7 or 1.0e-7 (500 ns or 100 ns), then an error code of FFCF273 (ErrorInvalidAttributeValue) is returned.   I assumed that maybe the original code used by NI was compiled using a non-Borland compiler and that there was an error due to rounding.  However I tweaked the lowest order, successively adding 1, then 2, then subtracting 1 then 2 from the value.  (I did this using the Delphi equivalent of the C union construction).  This did not fix the error.  Any other suggestions?   
0 Kudos
Message 1 of 2
(4,444 Views)

Hi martinVI,

 

According to the NI 622x Specifications, the supported filter settings are "125 ns, 6.425 μs, 2.56 ms, disable". I'm not sure why 5e-6 and 1e-6 didn't error as well, because they are not supported values for DAQmxSetCICountEdgesDigFltrMinPulseWidth() on the NI 622x. What version of NI-DAQmx are you using?

 

If you call DAQmxGetExtendedErrorInfo(), you'll get a string that contains specific information about what caused the error, including "You Have Requested:  500.0e-9; You Can Select:  0.000000,  2.560000e-3,  6.425000e-6,  125.0e-9".

 

Brad

Message Edited by Brad K on 09-02-2009 12:46 PM
---
Brad Keryan
NI R&D
0 Kudos
Message 2 of 2
(4,422 Views)