Instruction manual
AMPDIO DRIVERS
Page 141
generated.
SUPPORTED IN VERSION 4.32 ONWARDS.
i = TCchangePeriodicPulseTrainDuration (h, hPPT, oneshotTime)
where h short: board handle as issued by the
registerBoardEx function.
hPPT short: periodic pulse train generator handle, as
issued by the TCsetPeriodicPulseTrain
function.
oneshotTime double: desired one-shot train duration in
seconds.
Returns short: OK
or ERRHANDLE
ERRCHAN
ERRDATA
Prior Calls registerBoardEx
TCsetPeriodicPulseTrain
See Also TCfreePeriodicPulseTrain
TCchangePeriodicPulseTrainGate
TCchangePeriodicPulseTrainFreq
TCchangePeriodicPulseTrainCount
TCcontrolPeriodicPulseTrain
6.4.8.12 Control a Periodic Pulse Train Generator's Timer Channels — TCcontrolPeriodicPulseTrain
Stops or starts the 'pulse' channel and/or the 'one-shot' channel and/or the 'train' channel of a
periodic pulse train generator. If the 'pulse' channel is stopped, its output will go high
immediately. If the 'one-shot' channel is stopped, the outputs of both the 'one-shot' channel
and the 'pulse' channel will go high immediately. If the 'train' channel is stopped, its output will
go high immediately but there will be no immediate effect on the 'one-shot' and 'pulse'
channels.
On setting up the periodic pulse train generator, all three channels are started. For pulses to
be generated, all channels must be started and the 'train' channel's gate input must be high. If
the 'train' channel is stopped or its gate input goes low during a pulse train, the current pulse
train will complete unless the 'one-shot' channel and/or the 'pulse' channel is stopped.
SUPPORTED IN VERSION 4.40 ONWARDS.
i = TCcontrolPeriodicPulseTrain (h, hPPT, runPulse, runOneshot,
runTrain)
where h short: board handle as issued by the
registerBoardEx function.
hPPT short: periodic pulse train generator handle, as
issued by the TCsetPeriodicPulseTrain
function.
runPulse short: controls the 'pulse' channel: