09-13-2019 10:35 AM
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
09-18-2019 05:58 AM
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