Instruction manual

Table Of Contents
Page
91
PC215E
6.6.8.3 Generate a Frequency - TCgenerateFreq
Generates a square wave of specified frequency on a single timer/counter. See section 4.2.7
for more details on the Frequency Generation application.
i = TCgenerateFreq (h, chip, chan, freq)
where
h Integer. Board handle as issued by the 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).
freq Float. Desired frequency in Hertz.
Returns Integer:
OK
or ERRHANDLE
ERRCHAN
ERRRANGE
Prior Calls registerBoard
See Also TCgenerateAccFreq