Instruction manual

AMPDIO DRIVERS
Page 169
Z1 = 16
Z2 = 20
MinF float: output frequency corresponding to DI
data value 0.
MaxF float.: frequency corresponding to the
maximum digital input data value, which itself
depends on the channel width specified in
DIOsetChanWidth.
Returns short: DCO handle (>= 0). Use this handle to call TCfreeDCO when
finished.
or ERRHANDLE
ERRCHAN
ERRDATA
Prior Calls registerBoardEx
See Also TCsetUserCO
enableInterrupts
TCfreeDCO
6.4.10.2 Prepare a User-Controlled Oscillator TCsetUserCO
Implements a user-controlled oscillator that periodically calls a user-supplied function. The
user function may set the frequency of the oscillator using TCsetUserCOLevel.
i = TCsetUserCO (h, pfn, opChip, opChan, udFreq, udChip, MinF, MaxF)
where h short: board handle as issued by the
registerBoardEx function.
pfn pointer to function (short, unsigned int,
unsigned long) returning void: A pointer to a
function implemented in the user’s code that
has the format of a TCUserCOCallback as
defined below.
opChip short: address offset of the timer/counter chip
to be used for frequency output. One of the
following pre-defined constants may be used:
X1 = 0
X2 = 4
Y1 = 8
Y2 = 12
Z1 = 16
Z2 = 20
opChan short: frequency output timer/counter channel
number within the chip (0, 1 or 2).
udFreq float: update frequency in Hertz.
udChip short: address offset of a timer/counter chip of
which counter channel 1 will be used to