Instruction manual
AMPDIO DRIVERS
Page 128
or ERRDATA
Prior Calls none
See Also TCgetElapsedTime
6.4.7.7 Free-up Stopwatch Counter/Timers — TCfreeStopwatch
Frees the timer/counters used by a stopwatch, as previously set up by TCsetStopwatch. Call
this function when the stopwatch is no longer required.
i = TCfreeStopwatch (h, hS)
where h short: board handle as issued by the
registerBoardEx function.
hS short: stopwatch handle as issued by the
TCsetStopwatch function.
Returns short: OK
or ERRHANDLE
ERRCHAN
Prior Calls registerBoardEx
TCsetStopwatch
See Also
6.4.7.8 Prepare a 32-Bit Event Counter — TCsetEventCounter
Sets up a 32-bit event counter, which uses 2 timer/counters to count events on the clock input
of the specified timer/counter channel.
An 'event' is a rising edge followed by a falling edge on the clock input.
If an internal clock source is used to provide the events, this is similar to the stopwatch
function.
SUPPORTED IN VERSION 4.42 ONWARDS.
See section 3.1.10 for more information on the 32-bit event counter application.
i = TCsetEventCounter (h, chip, chan, clock)
where h short: board handle as issued by the
registerBoardEx function.
chip short: address offset of the timer/counter chip.
One of the following pre-defined constants may
be used:
X1 = 0
X2 = 4
Y1 = 8
Y2 = 12