Instruction manual

AMPDIO DRIVERS
Page 138
be used, or use -1 to choose a value
automatically for boards with clock connection
registers:
-1 (choose automatically)
CLK_10MHZ = 1 (fixed 10 MHz clock)
CLK_1MHZ = 2 (fixed 1 MHz clock)
CLK_100KHZ = 3 (fixed 100 kHz clock)
CLK_10KHZ = 4 (fixed 10 kHz clock)
CLK_1KHZ = 5 (fixed 1 kHz clock)
trainGate short: gate input source for the train rate
generator (if the board has gate connection
registers). One of the following pre-defined
constants may be used:
GAT_VCC = 0 (gate on/high)
GAT_GND = 1 (gate off/low)
GAT_EXT = 2 (gate from external
input)
GAT_OUTN_2 = 3 (gate from inverted
output of a timer
channel offset by -2
from train channel)
trainFreq double: desired train frequency in Hz. The
actual frequency will be rounded to an integral
division of the train clock frequency.
Returns short: Handle to the periodic pulse train generator (>= 0). Use this handle
to call the TCfreePeriodicPulseTrain function when finished, in
order to free up the counter/timers for re-use.
or ERRHANDLE
ERRCHAN
ERRDATA
Prior Calls registerBoardEx
See Also TCfreePeriodicPulseTrain
TCchangePeriodicPulseTrainGate
TCchangePeriodicPulseTrainFreq
TCchangePeriodicPulseTrainCount
TCchangePeriodicPulseTrainDuration
TCcontrolPeriodicPulseTrain
TCsetRestrictedPulseTrain
TCsetOneShotPulseTrain
6.4.8.8 Change Periodic Pulse Train’s Gate Input TCchangePeriodicPulseTrainGate
Sets the gate input for a periodic pulse train generator (as set up by TCsetPeriodicPulseTrain)
to the specified value if the board has timer/counter gate connection registers. For example, if
the periodic pulse train generator was set up with an initial gate value of GAT_GND to disable
pulse generation, then a gate value of GAC_VCC may be used here to begin generating
pulses at a later time.
SUPPORTED IN VERSION 4.32 ONWARDS.