User manual

Technical reference 26
Copyright 2004 Pico Technology Limited. All rights reserved.
Arguments:
handle
- Specifies the USB TC-08 unit.
temp_buffer
- Pointer to a location where the readings are to be placed.
times_ms_buffer
- Returns the time that the first channel was converted
(optional.)
buffer_length
- Length of data buffers.
overflow
- Pointer to a variable that will be assigned a value of 1 if an
overflow occured on any of the readings copied into
temp_buffer
, or 0 if an overflow did not occur. An
overflow occurs when the input signal is higher than the
measuring range of the USB TC-08.
channel
- Specifies the channel to read the temperature from.
units
- Specifies the temperature units for returned data:
0: USBTC08_UNITS_CENTIGRADE
1: USBTC08_UNITS_FAHRENHEIT
2: USBTC08_UNITS_KELVIN
3: USBTC08_UNITS_RANKINE
Voltages are always returned in millivolts
fill_missing
- Choose whether or not to replace QNaN values with the
last known value:
0 - Use QNaNs to represent missing readings
1 - Fill missing readings with previous good reading.
Returns:
-1
- An error occurred, use
usb_tc08_get_last_error
to get the
code.
0
- Currently no readings to collect.
> 0
- Number of readings copied into array (there may still be
more readings in the driver's internal buffer.)