beautypg.com

Usb_tc08_open_unit_async – Omega Speaker Systems 8 Channel Thermocouple USB Data Acquisition Module TC-08 User Manual

Page 22

background image

TC-08 User's Guide

18

3.3.2.2

usb_tc08_open_unit_async

short usb_tc08_open_unit_async (void)

This routine begins enumerating USB TC-08 units in the background and provides a
return immediately, so the calling thread can continue executing other code.

Note: The driver is thread safe and will not allow access to a single unit from more
than one application. If, therefore,

usb_tc08_open_unit_async

does not find a

unit, check that other applications are not using the same USB TC-08. This includes
applications on other user accounts on the same computer, where fast user switching
is supported.

Arguments

None

Returns

1

The call was successful.

0

No more units were found.

-1

An error occurred, call

usb_tc08_get_last_error

with a

handle of 0 to obtain the error code.