Omega Speaker Systems TC-08 manual Streaming mode

Page 12

8

TC-08 User's Guide

3.2.2Streaming mode

Streaming mode is an operational mode in which the USB TC-08 unit samples data and returns it to the computer in an unbroken sequence, using the onboard clock to ensure accurate timing.

The unit can buffer up to two sets of readings at once. To avoid loss of readings, make sure that another application on the PC - including the one you are writing - does not prevent the driver from collecting readings for more than three sampling intervals.

To allow the driver to sample continuously, call the Windows Sleep() function in any sampling loops (see example below) to make sure that your application does not use too much processor time.

Hint: Try not to use a Sleep() call for less than 50-100 milliseconds, e.g., Sleep(50) or Sleep(100). If you are programming a Windows GUI application, a good alternative to sampling loops is the WM_TIMER message.

Image 12
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 Safety warning Safety groundingMaximum input range Mains voltages Specifications 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 Routine Description New USB and serial mode New USB mode onlyLegacy mode only Driver routinesNew USB mode and legacy mode Short usbtc08openunit voidNone 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 Long usbtc08gettemp Short Handle Float * tempbuffer TempbufferTimesmsbuffer 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 Excel LabVIEWVisual Basic Agilent VEETroubleshooting KeyGlossary Cold junction compensation. See CJCTechnical reference Page Index TC-08 Users Guide WARRANTY/DISCLAIMER Shop online at omega.com