09-02-2007 03:32 PM
09-03-2007 02:18 AM
the 9215A do 20kSam/s , that not too much, so .... your encoder should change state 10k/s max.
first approach: continious read (with max speed) with two buffers, while one buffer is filled by the DAQ, analyse the data of the other. Three independend loops : first wait for and read buffer-> send data via queue to second analyse loop -> send data via second queue to third loop that does the file handling.
second approach: create a trigger so the second loop can be avoided. The DAQmx/Hardware does might not support the trigger on both edges on two channels, but additional hardware like LS7084 o. HCTL2022 can help you to create the trigger signal. These little bugs are designed for incremental encoders and create a pulse for every change in the A B lines ![]()