Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Nidaq Counter Numbers for PCI6601

I am trying to interface my application to a PCI6601, but keep getting -10121 errors with the GPCTR_Control and GPCTR_Set_Application Nidaq functions. I am sending the Board number as a short, Counter number as a Cstring(Null terminated), with a value of ND_COUNTER_0, and an action of type Cstring(null terminated), value ND_RESET. I am using Nidaq Version 6.9.2. What am I doing wrong?
0 Kudos
Message 1 of 3
(3,378 Views)
Hello;

Without seeing the code, we can't predict where the problem is. However, you can use one of the NI-DAQ shipping example as start point for your development, and then change the code as your application requires.

You can start with the one named "TIOEventCountwithFilt.c" that you can find at C:\Program Files\National Instruments\NI-DAQ\examples\VisualC\Ctr.

Hope this helps.
Filipe A.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,378 Views)
Thanks for your answer.
I found my problem in my code, I was not passing the correct values to NiDaq. I corrected the constants for the correct values, and the board starting working wonderfully.
Thanks again!
0 Kudos
Message 3 of 3
(3,378 Views)