Instruction manual

AMPDIO DRIVERS
Page 135
Y2 = 12
Z1 = 16
Z2 = 20
chan short: timer/counter channel number within the
chip (0, 1 or 2). Another timer/counter (chan
1) will be used by this function. This
timer/counter may be on the previous chip.
freq float: desired frequency in Hertz.
The frequency must be at least 0.002328 Hz.
Returns short: OK
or ERRHANDLE
ERRCHAN
ERRRANGE
Prior Calls registerBoardEx
See Also TCgenerateFreq
TCfreeResource
6.4.8.6 Generate a Pulse TCgeneratePulse
Generates a negative-going pulse at a specified frequency on a single timer/counter. The
pulse width is the period of the timer/counter clock input, which may be hard-wired or
software-configured, depending on the card.
SUPPORTED IN VERSION 4.00 ONWARDS.
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 desired output frequency is
chosen.
i = TCgeneratePulse (h, chip, chan, freq)
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).