Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx: Synchronize two counter input tasks

Hello,

 

I read a lot of posts with a similar question, but unluckily I still haven't figured out how to solve my problem.

I'm trying to count the pulses of two devices, but I don't know how to get the two counters synchronized and start and stop at the same time. I'd like to count the pulses of both counters for a specific amount of time and at the end compare the counters.

 

I'm using a NI USB-6210 and the max. frequency of the pulses is 10kHz.

 

Can anyone show me how to do this in C? I'm actually using Python for my data acquisition, but I'll figure out the translation myself.

 

The main problem so far is, I don't know how to use the same clock for the two counters and how to trigger the two tasks simultaniously.

I'm mainly interested in the end value of the counters, but a complete array with all counts would also be nice.

 

Thanks in advance for the help, much appriciated.

0 Kudos
Message 1 of 1
(4,261 Views)