Instruction manual
AMPDIO DRIVERS
Page 155
6.4.8.27 Change Programmable Width Pulse Generator's Duty Cycle — TCchangePWPulseDutyCycle
Changes the output low period of the programmable width pulse generator by specifying a
new duty cycle. This is the proportion of the previously specified period to spend with the
output low when the pulse generator is triggered. This function has no direct control over the
output high period.
SUPPORTED IN VERSION 4.42 ONWARDS.
i = TCchangePWPulseDutyCycle (h, hPWP, duty)
where h short: board handle as issued by the
registerBoardEx function.
hPWP short: programmable width pulse generator
handle, as issued by the TCsetPWPulse
function.
duty double:.proportion of the specified period to
spend with the output low, range 0 to 1.
Returns short: OK
or ERRHANDLE
ERRCHAN
ERRDATA
Prior Calls registerBoardEx
TCsetPWPulse
See Also TCfreePWPulse
TCchangePWPulsePeriod
TCcontrolPWPulse
6.4.8.28 Change Programmable Width Pulse Generator's Period — TCchangePWPulsePeriod
Changes the assumed period of the programmable width pulse generator, which affects the
length of the output low period when the pulse generator is triggered. There is no direct
control over the output high period.
Note that if the programmable width pulse generator was set up to use an automatically
chosen internal clock source, then a new internal clock source may be chosen by this
function. This will result in the programmable width pulse generator generating output pulses
of incorrect length while this function is running.
SUPPORTED IN VERSION 4.42 ONWARDS.
i = TCchangePWPulsePeriod (h, hPWP, period)
where h short: board handle as issued by the
registerBoardEx function.
hPWP short: programmable width pulse generator
handle, as issued by the TCsetPWPulse
function.
period double: assumed period between hardware
triggers, used to calculate the output low time.