Instruction manual

AMPDIO DRIVERS
Page 117
ERRCHAN
ERRDATA
Prior Calls registerBoardEx
TCsetMode
See Also TCgetCount
TCsetClock
TCsetGate
6.4.5.13 Set two Timer Count Values TCsetCounts
Sends two 16-bit count values to two timer/counters.
SUPPORTED IN VERSION 4.00 ONWARDS.
i = TCsetCounts (h, chip1, chan1 count1, chip2, chan2, count2)
where: h short: board handle as issued by the
registerBoardEx function.
chip1 short: address offset of the timer/counter chip
#1. One of the following pre-defined constants
may be used:
X1 = 0
X2 = 4
Y1 = 8
Y2 = 12
Z1 = 16
Z2 = 20
chan1 short: timer/counter #1 channel number within
the chip (0, 1 or 2).
count1 long: 16-bit Count value #1.
chip2 short: address offset of the timer/counter chip
#2. One of the following pre-defined constants
may be used:
X1 = 0
X2 = 4
Y1 = 8
Y2 = 12
Z1 = 16
Z2 = 20
chan2 short: timer/counter #2 channel number within
the chip (0, 1 or 2).
count2 long: 16-bit Count value #2.
Returns short: OK
or ERRHANDLE
ERRCHAN
ERRDATA