User manual

USB TC-08 Help29
Copyright 2004 Pico Technology Limited. All rights reserved.
Arguments:
handle
- Specifies the USB TC-08 unit.
channel
- Specifies which channel you want to set the details for: This
should be between 0 and 8.
tc_type
- Specifies what type of thermocouple is connected to this
channel. Set to one of the following characters 'B', 'E', 'J', 'K',
'N', 'R', 'S', 'T.' Use a space in quotes to disable the channel.
filter_factor
- Specifies the size of the median filter. Each time the driver
takes a reading from this channel, it updates the filtered value
by adding a reading to a median filter. The filter factor can be
set to any value between 0 - 255 (0 or 1 turns filtering off).
filter_factor
- These parameters are provided for backward compatibility
with the serial TC-08 and have no effect when used with the
USB TC-08.
Returns:
0
- Use
usb_tc08_get_last_error
.
1
- Legacy set channel successful.
Note: This function should not be called unless you are operating the USB TC-08 in legacy mode,
having called
usb_tc08_legacy_run
.
3.3.4.3 usb_tc08_legacy_get_temp
short usb_tc08_legacy_get_temp (long * temp,
short handle,
short channel,
short filtered)
Once you open the driver and define some channels, you can call the
usb_tc08_legacy_run
routine.
The driver will then constantly take readings from the USB TC-08. Temperatures are returned in
hundredths of a degree Centigrade and voltages are returned in microvolts.