Instruction manual

Table Of Contents
Page
69
PC215E
6.6.4 Timer/Counter Functions
6.6.4.1 Test if Timer/Counter is free - TCisAvailable
Checks if a particular timer/counter channel is currently available on a board. A counter/timer
may not be available for one of two reasons:
1. the counter/timer is not provided by the board specified, or
2. the counter/timer is being used by some other function.
i = TCisAvailable(h, chip, chan)
where
h Integer. Board handle as previously issued by
the registerBoard function.
chip Integer. 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 Integer. Timer/counter channel number within
the chip, i.e. 0, 1, or 2.
Returns Integer:
0 = Timer/counter NOT available, 1 = Available
or ERRHANDLE
ERRCHAN
ERRDATA
Prior Calls registerBoard
See Also TCfreeResource