Instruction manual
AMPDIO DRIVERS
Page 144
pulseShape short: shape of pulses:
0 (negative-going for 1 clock period)
1 (negative-going square pulses)
trainClock short: clock source for the train rate generator.
One of the following pre-defined constants may
be used:
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 restricted periodic pulse train generator (>= 0) ). Use
this handle to call the TCfreeRestrictedPulseTrain function when
finished, in order to free up the counter/timers for re-use.
or ERRHANDLE
ERRCHAN
ERRDATA
Prior Calls registerBoardEx
See Also TCfreeRestrictedPulseTrain
TCchangeRestrictedPulseTrainGate
TCchangeRestrictedPulseTrainFreq
TCchangeRestrictedPulseTrainCount
TCcontrolRestrictedPulseTrain
TCsetPeriodicPulseTrain
6.4.8.15 Change Restricted Periodic Pulse Train’s Gate Input — TCchangeRestrictedPulseTrainGate
Sets the gate input for a restricted periodic pulse train generator (as set up by
TCsetRestrictedPulseTrain) to the specified value if the board has timer/counter gate
connection registers. For example, if the 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.