Instruction manual

AMPDIO DRIVERS
Page 121
SUPPORTED IN VERSION 4.40 ONWARDS.
i = TCgetInitialCount (h, chip, chan, pcount)
where h short: board handle as issued by the
registerBoardEx function.
chip short: address offset of the timer/counter chip.
One of the following pre-defined constants may
be used:
X1 = 0
X2 = 4
Y1 = 8
Y2 = 12
Z1 = 16
Z2 = 20
chan short: timer/counter channel number within the
chip (0, 1 or 2).
pcount pointer to long: pointer to a long integer
variable into which the initial count value will be
placed.
Returns short: OK
or ERRHANDLE
ERRCHAN
ERRDATA
ERRSUPPORT
Prior Calls registerBoardEx
See Also TCsetCount
6.4.6 Differential Counter Functions
6.4.6.1 Set-up Differential Counter Pair TCsetDiffCounters
Sets up two counter/timers for a differential count operation. If the gate sources specified are
both GAT_VCC, counting will start immediately. Otherwise the user must provide the gate
signals or set the gates high by a call to TCsetGate. Note that the PC214E does not support
software-configurable clock and gate settings, and the clk1, clk2, gat1, and gat2 arguments
will have no effect. See section 5.2.2 for details on the clock and gate sources available. See
section 3.1.1 for more details on the Differential Counter application.
i = TCsetDiffCounters (h, chip1, chan1, clk1, gat1, chip2, chan2,
clk2, gat2)
where h short: board handle as issued by the
registerBoardEx function.
chip1 short: address offset of timer/counter chip #1.
One of the following pre-defined constants may
be used: