Omega Speaker Systems TC-08 manual Driver routines, Routine Description New USB and serial mode

Page 18

14

TC-08 User's Guide

3.3Driver routines

3.3.1Introduction

The following table explains each of the USB TC-08 routines:

Routine

Description

 

 

New USB and serial mode

 

 

 

usb_tc08_open_unit

Opens the USB TC-08 unit and gets a valid USB handle.

usb_tc08_open_unit_async

Opens the unit asynchronously.

usb_tc08_open_unit_progress

Polls the unit's enumeration progress during

 

asynchronous operation.

usb_tc08_close_unit

Closes the handle.

usb_tc08_stop

Stops the unit streaming.

usb_tc08_set_mains

Sets the mains interference rejection filter to either 50

 

Hz or 60 Hz.

usb_tc08_get_minimum_interval_ms

Returns the minimum sampling interval for the current

 

setup.

usb_tc08_get_unit_info

Retrieves information on a particular unit and presents it

 

as a structure.

usb_tc08_get_formatted_info

Retrieves information on a particular unit and presents it

 

in string form.

usb_tc08_get_last_error

Returns the last error for a specified unit or for a call to

 

open a unit.

New USB mode only

 

 

 

usb_tc08_set_channel

Sets up a USB TC-08 channel.

usb_tc08_run

Starts the USB TC-08 unit streaming.

usb_tc08_get_single

Converts readings from currently set up channels on

 

demand.

usb_tc08_get_temp

In streaming mode, retrieves temperature readings from

 

a specified channel.

usb_tc08_get_temp_deskew

In streaming mode, retrieves temperature readings from

 

a specified channel with time deskewed.

Legacy mode only

 

 

 

usb_tc08_legacy_run

Starts the USB TC-08 unit running in legacy mode.

usb_tc08_legacy_set_channel

Sets up a USB TC-08 channel.

usb_tc08_legacy_get_temp

Retrieves temperature readings from a specified channel.

usb_tc08_legacy_get_cold_junction

Retrieves a temperature reading for the cold junction.

usb_tc08_legacy_get_driver_version

Returns the driver version.

usb_tc08_legacy_get_version

Returns the hardware version of the USB TC-08 unit.

usb_tc08_legacy_get_cycle

Returns the number of readings taken so far.

Image 18
Contents User’s Guide Servicing North America Contents Page Installing the driver Connecting the USB TC-08 OverviewTC-08 Users Guide RefreshTC-08 Channels window, double-click on Channel 1 unused Maximum input range Safety warningSafety grounding Mains voltagesSpecifications How a thermocouple works Introduction Modes of operationIntroduction Streaming mode Example ==================================================Get Single mode Usbtc08setmains handle, 0 // use 50Hz mains noise rejection Legacy mode Now do something with the cold junction temperature Legacy mode only Routine Description New USB and serial modeNew USB mode only Driver routinesNone New USB mode and legacy modeShort usbtc08openunit void ArgumentsPositive short ReturnsStore the handle in an array handlearrayi = newhandle Short usbtc08openunitasync void Arguments None ReturnsHandle any error conditions if result == Handle ProgressShort tc08closeunit Short handle Arguments handleShort usbtc08stop Short handle Short usbtc08setmains Short handle, short sixtyhertz SixtyhertzLong usbtc08getminimumintervalms Short handle MinimumInterval Short usbtc08getunitinfo Shorthandle, USBTC08INFO * info InfoShort usbgetformattedinfo Handle Char Unitinfo StringlengthUSBTC08MAXINFOCHARS characters long Short usbtc08getlasterror Short handle User/Developer error codes Error Further information CodeError Reserved error codesCode New USB mode only ChannelTctype Long usbtc08run Short handle, long interval Temp OverflowflagsUnits Timesmsbuffer Long usbtc08gettemp Short Handle Float * tempbufferTempbuffer OverflowLong usbtc08gettempdeskew Short Handle Float * temp Times Short Channel Units FillmissingLegacy mode only Short usbtc08legacyrun Short handleFilterfactor Filtered Short usbtc08legacygetcoldjunction Long * temp, short handle Short usbtc08legacygetdriverversion Void Driver version NumberShort usbtc08legacygetversion Short * version, short handle VersionShort usbtc08legacygetcycle Long * cycle, short handle CycleProgramming C++Delphi Visual Basic ExcelLabVIEW Agilent VEETroubleshooting KeyGlossary Cold junction compensation. See CJCTechnical reference Page Index TC-08 Users Guide WARRANTY/DISCLAIMER Shop online at omega.com