Hello Wildcat,
I think a buffered counter program is the way to go. There is a shipping example called
Meas Angular Position-Buffered-Cont-Ext Clk.vi. This example takes data from an angular encoder every time it sees a tick on PFI9. You could modify this example to use a linear encoder by changing the
DAQmx Create Channel to
Counter Input > Position > Linear Encoder. You could then feed the pulse from your motor encoder to PFI 9. Now this setup will read data on every motor pulse instead of every fifth/sixth. You can get around this by simply ignoring the extra data or by using another counter to divide down your motor pulses. Give the example a look and tell us what you think.
Best Regards and congrats on the Gillespie hire,
Jeff Tipps
Applications Engineer
National Instruments