Omega Speaker Systems TC-08 manual Introduction, Modes of operation

Page 11

Technical reference

3Technical reference

3.1Introduction

7

The USB TC-08 is supplied with driver routines that you can build into your own programs. The USB TC-08 driver supports Windows XP SP2 and Windows Vista.

Once you have installed the software, the Examples directory will contain the drivers and a selection of examples of how to use the drivers.

The driver is supplied as a Windows DLL. The DLL uses the C stdcall calling convention and can be used with C, Delphi and Visual Basic programs. It can also be used with programs like Microsoft Excel, where the macro language is a form of Visual Basic.

3.2Modes of operation

3.2.1Introduction

The USB TC-08 is designed for three specific modes of operation to suit a variety of applications. The following modes are supported:

Streaming mode

Get Single mode

Legacy mode

Image 11
Contents User’s Guide Servicing North America Contents Page Overview Installing the driver Connecting the USB TC-08Refresh TC-08 Users GuideTC-08 Channels window, double-click on Channel 1 unused Mains voltages Safety warning Safety grounding Maximum input rangeSpecifications How a thermocouple works Introduction IntroductionModes of operation Streaming mode ================================================== ExampleGet Single mode Usbtc08setmains handle, 0 // use 50Hz mains noise rejection Legacy mode Now do something with the cold junction temperature Driver routines Routine Description New USB and serial modeNew USB mode only Legacy mode onlyArguments New USB mode and legacy modeShort usbtc08openunit void NoneReturns Positive shortStore the handle in an array handlearrayi = newhandle Arguments None Returns Short usbtc08openunitasync voidHandle any error conditions if result == Progress HandleArguments handle Short tc08closeunit Short handleShort usbtc08stop Short handle Sixtyhertz Short usbtc08setmains Short handle, short sixtyhertzInterval Long usbtc08getminimumintervalms Short handleMinimum Info Short usbtc08getunitinfo Shorthandle, USBTC08INFO * infoUSBTC08MAXINFOCHARS characters long Short usbgetformattedinfo Handle Char UnitinfoStringlength User/Developer error codes Error Further information Code Short usbtc08getlasterror Short handleCode ErrorReserved error codes Tctype New USB mode onlyChannel Long usbtc08run Short handle, long interval Units TempOverflowflags Overflow Long usbtc08gettemp Short Handle Float * tempbufferTempbuffer TimesmsbufferShort Channel Units Fillmissing Long usbtc08gettempdeskew Short Handle Float * temp TimesShort usbtc08legacyrun Short handle Legacy mode onlyFilterfactor Filtered Short usbtc08legacygetcoldjunction Long * temp, short handle Driver version Number Short usbtc08legacygetdriverversion VoidVersion Short usbtc08legacygetversion Short * version, short handleCycle Short usbtc08legacygetcycle Long * cycle, short handleDelphi ProgrammingC++ Agilent VEE ExcelLabVIEW Visual BasicKey TroubleshootingCold junction compensation. See CJC GlossaryTechnical reference Page Index TC-08 Users Guide WARRANTY/DISCLAIMER Shop online at omega.com