Instruction manual

Table Of Contents
PC215E Page 72
6.6.4.4 Connect Timer/Counter Gate Source - TCsetGate
Configures a timer/counter gate input source.
i = TCsetGate(h, chip, chan, gat)
where
h Integer. Board handle as 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 (0, 1 or 2).
gat Integer. Gate source. Use one of the following
pre-defined constants:-
GAT_VCC = 0: Enabled
GAT_GND = 1: Disabled
GAT_EXT = 2: GAT(chan) - external i/p
GAT_OUTN_2 = 3: /OUT(chan-2)
Returns Integer:
OK
or ERRSUPPORT
ERRHANDLE
ERRCHAN
ERRDATA
Prior Calls registerBoard
See Also TCsetClock