Instruction manual

Table Of Contents
PC215E Page 82
6.6.6 Frequency Generation Functions
6.6.6.1 Send Monostable Pulse - TCsetMonoShot
Creates a single pulse of specified duration on the output of a timer/counter, using the timer’s
‘Hardware Retriggerable One-Shot’ mode. In this mode, the timer output will go low for the
duration specified on the clock pulse following a gate trigger. Subsequent gate triggers will
retrigger the pulse. See section 4.2.2 for more details on the Monostable application.
i = TCsetMonoShot (h, chip, chan, duration)
where
h Integer. Board handle as issued by function
registerBoard.
chip Integer. Address offset of timer/counter chip.
One of the following pre-defined constants may
be used:
X1 = 0
X2 = 4
Y1 = 8
Y2 = 12
Z1 = 16
Z2 = 20.
chan Integer. Timer/counter channel number within
the chip (0, 1 or 2).
duration Float. Pulse duration time, in seconds.
Returns Integer:
OK
or ERRHANDLE
ERRCHAN
ERRDATA
Prior Calls registerBoard
See Also TCsetGate