Instruction manual

AMPDIO DRIVERS
Page 145
Has no effect on boards without gate connection registers.
i = TCchangeRestrictedPulseTrainGate (h, hRPT, trainGate)
where h short: board handle as issued by the
registerBoardEx function.
hRPT short: restricted periodic pulse train generator
handle, as issued by the
TCsetRestrictedPulseTrain function.
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)
Returns short: OK
or ERRHANDLE
ERRCHAN
ERRDATA
Prior Calls registerBoardEx
TCsetRestrictedPulseTrain
See Also TCfreeRestrictedPulseTrain
TCchangeRestrictedPulseTrainFreq
TCchangeRestrictedPulseTrainCount
TCcontrolRestrictedPulseTrain
6.4.8.16 Change Restricted Periodic Pulse Train’s Frequency TCchangeRestrictedPulseTrainFreq
Changes the frequency of trains for the restricted periodic pulse train generator (as set up by
TCsetRestrictedPulseTrain) to the specified value.
SUPPORTED IN VERSION 4.32 ONWARDS.
i = TCchangeRestrictedPulseTrainFreq (h, hRPT, trainFreq)
where h short: board handle as issued by the
registerBoardEx function.
hRPT short: restricted periodic pulse train generator
handle, as issued by the
TCsetRestrictedPulseTrain function.
trainFreq double: desired train frequency in Hz. The
actual frequency will be rounded to an integral