07-27-2009 03:30 PM
I have a NI 6624 counter timer card which was counting pulses correctly in test mode. I set the card up using the following commands shown below. (Please note that I am coding in Delphi, so the syntax shown below might not be 100% correct.) However, I am 99% sure that the error is not caused by syntax).
DAQmxCreateTask ('Ctr1', myHandle);
DAQmxCreateCICountEdgesChan (myHandle,
'Dev1/Ctr1',
nil,
DAQmx_Val_Edge1_Rising,
0,
DAQmx_Val_CountDirection1_CountUp);
When I started using the card for counting gamma pulses rather than counting simulated pulses, I found that I needed to tune the filter. I tried to set the filter to 100 nanoseconds by adding the following to my previous code:
DAQmxSetCIFreqDigFltrEnable (myHandle,
'Dev1/Ctr1',
TRUE);
DAQmxSetCIFreqDigFltrMinPulseWidth (myHandle,
'Dev1/Ctr1', 1.0E-7);
The first of these new commands returned the error code FFFCF0FC - “ErrorAttributeNotSupportedInTaskContext“. The computer was programmed to abort if an error is received, so the second command was never executed. These commands are not included in the DAQmx documentation supplied to me, even though they are included in the C++ interface.
Can anybody tell me what this error code means and even better why it occurred?
Solved! Go to Solution.
07-28-2009 12:04 PM
Hi MartinVI,
Thank you for contacting National Instruments. I have been looking at this error message. This is caused by trying to assign a property to a device that does not support it. In this case it is caused by trying to assign the CIFreq property to a CICountEdgesChan. You will need to use the
DAQmxSetCICountEdgesDigFltrEnable
in order to set this property. When you installed DAQmx you should have a C Reference Help file which should detail many of the commands that you need to use. Generally, this is found at All Programs -> National Instruments -> NI-DAQ ->DAQmx C Reference Help
If there is no short cut, it should be located at C:\Program Files\National Instruments\NI-DAQ\docs
I have also attached a copy of the help file to this post incase you haven't got it installed.
Please let me know how you get on with this.
Many thanks,