Gene,
Attached is an example which does what you desire. For a better explanation, please refer to the above thread. Basically, this example performs a buffered counter position measurement. It also detects changes (with the digital input task) on either P0.0 or P0.1 (you will have to wire your quadrature encoder outputs to both the digital lines (P0) and the counter SRC and AUX). On each of these changes, you should get a pulse on PFI0. This same pulse is used to buffer the current position of the counter, which is displayed in a while loop. Please let me know if you have any questions.
Hope this helps,
Ryan Verret
Product Marketing Engineer
Signal Generators
National Instruments