I suspect there'll be a way to get a satisfactory measurement with the 6602, but I'm not sure I understand your question well enough. Let me restate my best understanding of what you'd like to do, and we can go from there.
A. When the motor reaches a position of 5000 counts, as measured with a quadrature encoder, you would like to trigger a data acquisition task to start.
B. The acquisition task will take 1000 samples of
something (position? time interval?) in order to determine motor speed.
If your encoder supplies a
Z (a.k.a.
index) channel to provide you with a reference, you'll be able to generate the trigger described in part A above.
You would enable the 'Z-index reload' feature of position measurement, and set the 'reload value' to be offset by 5000 from terminal count. You'll need to configure that counter's output to 'pulse on terminal count'. (note: you'll also need to set the proper z-index phasing for the encoder you have.)
On each motor revolution, you'll produce a pulse exactly 5000 quadrature-decoded positions after the encoder's Z-index pulse. This pulse can be used to trigger an acquisition.
For the acquisition itself, you're probably either sampling quadrature position at a constant rate, or measuring time intervals between encoder edges. In most cases, I'd recommend the latter though not without a few more words.
First, realize that you won't easily be capturing intervals between every quadrature transition of the two encoder channels. More likely you'll be doing a buffered period measurement, i.e., time intervals between consecutive rising edges of
one of the encoder channels. While in theory you
could capture semiperiods of both, in reality most encoders have considerably more channel-to-channel and rising-to-falling-edge error than rising-to-rising (or falling-to-falling) -edge error.
Hope this helps some. Respond with further details or any questions.
-Kevin P.
ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.