Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

PXIe-6612 Counter Card Example Code

Hi All,

 

I have just taken delivery of a couple of 6612 Counter Cards and am having some problems getting them to work from my C code.

 

Has anybody got an example C code that covers setting up a task, clock, edges, etc then getting a count value out of a specific counter?

 

I believe that I am calling all the right functions to setup the above, each one returns 0 (no error) but when I try to start the task, I get an error code suggesting that the task is incorrectly configure.  I must be missing some important step?

 

Any code/advice/pearls of wisdom for these cards would be most welcome.

 

Cheers,

 

Adrian

0 Kudos
Message 1 of 2
(2,224 Views)

Hey Adrian,

 

Would you be able to share the code that you have so far with us?

 

I'm no expert in c code, but the DAQmx API is comparable between c and LabVIEW so as a minimum it should be "create virtual channel, start, read, clear"


Best,

 

Jelmer

 

 

0 Kudos
Message 2 of 2
(2,161 Views)