Instruction manual

Table Of Contents
Page
89
PC215E
6.6.8 Frequency Input and Output Functions
6.6.8.1 Measure Period of an External Signal - TCgetExtPeriod
Returns the period of an external signal, measured in microseconds. The external signal must
be connected to the clock input of the timer channel specified in the chan argument. See
section 4.2.6 for more details on the Frequency/Period Measurement application.
i = TCgetExtPeriod (h, chip, chan, fPtr)
where
h Integer. Board handle as issued by function
registerBoard.
chip Integer. Address offset of timer/counter chip
#2. 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). Another timer/counter
(chan-2) will also be used to provide the gate
signal. This second timer/counter may be on
the previous chip.
fPtr Pointer to Float. Pointer to a variable declared
as a single floating-point into which the period
will be placed.
Returns Integer:
OK
or ERRHANDLE
ERRCHAN
ERRRANGE
Prior Calls registerBoard
See Also TCgetExtFreq