Instruction manual

Table Of Contents
PC215E Page 80
6.6.5.2 Read Differential Count - TCgetDiffCount
Returns the difference between the count values of the two counters specified in the
TCsetDiffCounters function.
i = TCgetDiffCount (h, hD, diff)
where
h Integer. Board handle as issued by the
registerBoard function.
hD Integer. Differential counter handle as issued
by the TCsetDiffCounters function.
diff Pointer to Long. pointer to a variable, declared
as a long integer, into which the 16-bit count
value representing (Count#2 - Count#1) will be
placed.
Returns Integer:
OK
or ERRHANDLE
ERRCHAN
Prior Calls registerBoard
TCsetDiffCounters
See Also TCgetRatio
TCfreeDiffCounters
6.6.5.3 Read Differential Ratio - TCgetRatio
Returns the ratio of the count values of the two counter/timers specified in function
TCsetDiffCounters.
i = TCgetRatio (h, hD, ratio)
where
h Integer. Board handle as issued by function
registerBoard.
hD Integer. Differential counter handle as issued by
the TCsetDiffCounters function.
ratio Pointer to Float. pointer to a variable declared
as a single floating-point into which the value
representing the ratio of counts
(Counter#2/Counter#1) will be placed.
Returns Integer:
OK
or ERRHANDLE
ERRCHAN
Prior Calls registerBoard
TCsetDiffCounters
See Also TCsetGate
TCfreeDiffCounters