<< Previous | Next >>

qd_read

long qd_read( int channel );

Description

Reads the current quadrature decoder count. Since this function waits for a clear reading, it can potentially block if there is enough flutter in the decoder count.

This function is intended to be used with the Rabbit 3000 and Rabbit 4000.

Parameters

channel
The channel to read (currently 1 or 2).

Return Value

Returns a signed long for the current count.

Library

QD.LIB (was in R3000.LIB prior to DC 10)


Dynamic C Functions << Previous | Next >> rabbit.com