06-04-2009 12:38 PM
Hello?
My device is PCI-6025E and GPCTR_Watch function can't be ported to DAQmx clearly as long as I know.
The last parameter of this function is entity value which ranges from 0 to 224 - 1 in E series.
We used this third parameter to count up DMI samples that is feeding PFI3 pin. But there seems no way to count this DMI with any DAQmx code. How can I count this up just like MAX test panel does? The MAX test panel counts from 0 to 224 - 1.
Thanks,
06-05-2009 10:13 AM
Hello Anarkie,
It looks like you're looking to perform a count edges task. There is an excellent group of examples in the NI Example Finder that shows how to perform these types of tasks in NI-DAQmx. It would be best to start with the Count Digital Events VI.
Let me know if you have any questions about any of these examples.
Regards,
Dan King
06-05-2009 11:44 AM
Ah...I'm looking for Visual C++ solution not VI...
Thanks anyway.
06-05-2009 12:18 PM
Regards,
Dan King
06-05-2009 12:55 PM
Hello?
I know there is a function called DAQmxErrChk (DAQmxReadCounterScalarU32(taskHandle,10.0,&data,NULL)); in that folder.
But I really wonder the data parameter of DAQmxReadCounterScalarU32 is equivalent to the third parameter of GPCTR_Watch function.
Thanks,
06-08-2009 10:53 AM
Regards,
Dan King