User manual
Technical reference 28
Copyright 2004 Pico Technology Limited. All rights reserved.
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.)
3.3.4 Legacy mode only
3.3.4.1 usb_tc08_legacy_run
short usb_tc08_legacy_run(short handle)
This routine starts the sampling thread and forces the specified unit to run in legacy mode.
Arguments:
handle
- Specifies the USB TC-08 unit.
Returns:
0
- Use
usb_tc08_get_last_error
.
1
- Legacy run successful.
3.3.4.2 usb_tc08_legacy_set_channel
short usb_tc08_legacy_set_channel (short handle,
short channel,
char tc_type,
short filter_factor,
short offset,
short slope)
You should call this routine once for each channel that you would like to take readings from. You can do
this any time after calling
usb_tc08_open_unit
.