Instruction manual
AMPDIO DRIVERS
Page 131
TCresetEventCounter
6.4.8 Frequency/Pulse Generation Functions
6.4.8.1 Send Monostable Pulse — TCsetMonoShot
Creates a single pulse of specified duration on the output of a timer/counter, using the timer’s
‘Hardware Re-triggerable 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 re-
trigger the pulse. See section 3.1.2 for more details on the Monostable application.
For cards without a Counter Connections Register block (e.g. PC214E) an input clock
frequency of 1 MHz is assumed (4 MHz is assumed for PC27E).
For cards with a Counter Connections Register block, the highest internal clock frequency in 1
kHz, 10 kHz, 100 kHz, 1 MHz or 10 MHz that will support the specified duration is used.
i = TCsetMonoShot (h, chip, chan, duration)
where h short: board handle as issued by the
registerBoardEx function.
chip short: 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 short: timer/counter channel number within the
chip (0, 1 or 2).
duration float: pulse duration time, in seconds.
The minimum duration is 1 s divided by the
highest available input clock frequency. For
cards with clock connection registers, the
minimum duration is 100 ns.
The maximum duration is 65536 s divided by
the lowest available input clock frequency. For
cards with clock connection registers, the
maximum duration is 65.536 s.
Returns short: OK
or ERRHANDLE
ERRCHAN
ERRDATA
Prior Calls registerBoardEx
See Also TCsetGate