05-19-2006 10:11 AM
05-19-2006 10:25 AM
05-19-2006 11:49 AM
First I'd offer the general recommendation to interact with the 6602 through the newer DAQmx driver. Traditional NI-DAQ can work and all, but it's kind of a dead end.
The key to your needs is to perform a hw-timed acquisition. On a 6602, you'd need to use one of the counters to generate a hardware sampling clock signal. In the examples, this would called a "continuous pulse train."
A different counter would be used to count the encoder signal, either by counting edges or preferably by configuring the counter for angular position measurement. With DAQmx, part of the configuration would be a call to "DAQmx Timing.vi" where you would specify that the sampling clock comes from the output of the pulse train counter. Now when you collect position data, all the samples will be precisely spaced based on the pulse train period. Because the timing is handled by the hardware, it isn't demanding of your CPU.
A few terms you may want to use for searching are quadrature, encoder, buffered, sampling clock, 6602.
-Kevin P.
05-22-2006 09:16 AM
05-23-2006 03:29 PM