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

8 channel thermocouple usb data acquisition module
Table of Contents

Advertisement

Example
The following code is a fragment of a C application which demonstrates how to open
multiple units with the USB TC-08 driver. The handles to the open units are stored in
an array for later use:
//======================================================
// Opening multiple units
//======================================================
0
for
(i =
; (new_handle = usb_tc08_open_unit()) >
{
// store the handle in an array
handle_array[i] = new_handle;
}
no_of_units = i;
// deal with the error if there is one,
// if new_handle was zero, then there was no error
// and we reached the last available unit
if
(new_handle == -
{
error_code = usb_tc08_get_last_error(
printf("Unit failed to open\nThe error code is
// could terminate the application here
}
//
// Start using the open units
//
1
)
Technical reference
0
; i++)
0
);
%d", error_code);
17

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents