Quantcast
Channel: Counter/Timer topics
Viewing all articles
Browse latest Browse all 1271

How to trigger or start two counters

$
0
0

Using a USB6212 M series, I have two quadrature encoders feeding into the two counters. I use the freqout source to provide a 6250Hz clock signal for both, and run continuous sampling of the fifo at 200 samples per  loop. The code, in its most basic form, is attached.

I am having real problems getting any of the DAQmx vis to start the two counters at the same time. The purpose is to measure the relative rotation of the two encoders. Evidence is that one counter starts fairly randomly around 30 counts or 5ms before the other, which ruins my relative rotation measurement.

I'll take any suggestions. I don't care whether the trigger has to be a digital input, or a front panel event or whatever.

Thanks in advance.

Chris

 


Viewing all articles
Browse latest Browse all 1271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>