Instruction manual
AMPDIO DRIVERS
Page 112
Z2 = 20
chan short: timer/counter channel number within the
chip (0, 1 or 2).
gate short: gate source (0 to 7). One of the
following pre-defined constants may be used:
GAT_VCC = 0: Enabled
GAT_GND = 1: Disabled
GAT_EXT = 2: GAT(chan) — external i/p
GAT_OUTN_2 = 3: /OUT(chan–2)
Note: for PCI230 and PCI230+, GAT(chan)
input is PPI-X C(chan). For PCI260+,
GAT(chan) is EXTTRIG. For the original
PCI260, GAT(chan) is not connected.
PCI230+ and PCI260+ support the following
additional constants:
GAT_LATCHED_EXT = 4: Latched
GAT(chan) — goes high on rising edge
of GAT(chan)
GAT_LATCHED_NOT_EXT = 5: Latched
/GAT(chan) — goes high on falling edge
of GAT(chan)
GAT_NOT_EXT = 6: /GAT(chan) —
inverted external i/p
GAT_UNINV_OUTN_2 = 7: OUT(chan–2)
Returns short: OK
or ERRSUPPORT
ERRHANDLE
ERRCHAN
ERRDATA
Prior Calls registerBoardEx
See Also TCgetGate
TCgetLinkedGateChannel
TCsetClock
6.4.5.7 Get Connected Timer/Counter gate Source — TCgetGate
Gets a timer/counter channel’s currently connected gate source, if it has been configured.
This is not supported on PC214E or other models that have no gate connection registers.
Another function such as TCsetGate or one of the higher-level timer/counter functions has to
set the gate source after registering the board in order for this function to return the current
setting. If the current gate setting is not known, the function will return ERRSUPPORT.
SUPPORTED IN VERSION 4.40 ONWARDS.
i = TCgetGate (h, chip, chan, pgate)
where h short: board handle as issued by the