Omega Engineering 8 Channel Thermocouple USB Data Acquisition Module TC-08 User Manual page 31

8 channel thermocouple usb data acquisition module
Table of Contents

Advertisement

3.3.2.10 usb_tc08_get_last_error
short usb_tc08_get_last_error
(
short handle
)
This routine returns the last error for the unit specified by handle. If zero is passed
instead of a handle, the function returns the error associated with the last call to
usb_tc08_open_unit
Note: If an invalid handle is passed to a function, the function will fail. The error code,
however, cannot be associated with a unit so
retain an error code in this instance.
invalid handle is passed to it.
The error codes, also found in the C header file, are as follows:
User/Developer error codes:
Error
Error
code
0
USBTC08_ERROR_OK
1
USBTC08_ERROR_OS_NOT_SUPPORTED
2
USBTC08_ERROR_NO_CHANNELS_SET
3
USBTC08_ERROR_INVALID_PARAMETER
4
USBTC08_ERROR_VARIANT_NOT_SUPPORTED
5
USBTC08_ERROR_INCORRECT_MODE
6
USBTC08_ERROR_ENUMERATION_INCOMPLETE
Note: For more details on error codes, see troubleshooting.
or usb_tc08_open_unit_async.
usb_tc08_get_last_error
Technical reference
usb_tc08_get_last_error
Further information
No error occurred.
The driver supports Windows
XP SP2 and Vista.
A call to
usb_tc08_set_channel
is required.
One or more of the function
arguments were invalid.
The hardware version is not
supported. Download the latest
driver.
An incompatible mix of legacy
and non-legacy functions was
called (or
usb_tc08_get_single
was called while in
mode.)
usb_tc08_open_unit_async
was called again while a
background enumeration was
already in progress.
27
will not
will also fail if the
streaming

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents