Omega Speaker Systems TC-08 manual Programming, C++, Delphi

Page 45

Technical reference

3.4Programming

3.4.1Introduction

We supply examples for the following programming languages:

C and C++

Delphi

Excel

LabVIEW

Visual Basic

Agilent VEE

41

The example programs are installed in the Examples subdirectory of your TC-08 program directory.

3.4.2C and C++

C

The C example program is a generic Windows application: it does not use Borland AppExpert or Microsoft AppWizard. To compile the program, create a new project containing the following files:

usb_tc08.c usb_tc08.rc

either

usbtc08bc.lib

(Borland 32-bit applications)

or

usbtc08.lib

(Microsoft Visual C 32-bit applications)

The following files must be in the same directory:

usb_tc08.rch

usbtc08.h

usbtc08.dll

(all 32-bit applications)

C++

C++ programs can access all versions of the driver. If usbtc08.h is included in a C++ program, the PREF1 macro expands to extern "C": this disables name-mangling (or name-decoration), and enables C++ routines to make calls to the driver routines using C headers.

3.4.3Delphi

The WIN sub-directory contains a simple program usbtc08.dpr which opens the drivers and reads temperatures from the three channels. You will need the following files to build a complete program.

USBTC08FM.dfm

USBTC08FM.PAS

usbtc08.inc

The file usbtc08.inc contains procedure prototypes for the driver routines. You can include this file in your application.

This example has been tested with Delphi versions 1, 2 and 3.

Image 45
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 Safety grounding Safety warningMaximum input range Mains voltagesSpecifications How a thermocouple works Introduction Modes of operationIntroduction Streaming mode ================================================== ExampleGet Single mode Usbtc08setmains handle, 0 // use 50Hz mains noise rejection Legacy mode Now do something with the cold junction temperature New USB mode only Routine Description New USB and serial modeLegacy mode only Driver routinesShort usbtc08openunit void New USB mode and legacy modeNone ArgumentsReturns 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 sixtyhertzLong usbtc08getminimumintervalms Short handle MinimumInterval Info Short usbtc08getunitinfo Shorthandle, USBTC08INFO * infoShort usbgetformattedinfo Handle Char Unitinfo StringlengthUSBTC08MAXINFOCHARS characters long User/Developer error codes Error Further information Code Short usbtc08getlasterror Short handleError Reserved error codesCode New USB mode only ChannelTctype Long usbtc08run Short handle, long interval Temp OverflowflagsUnits Tempbuffer Long usbtc08gettemp Short Handle Float * tempbufferTimesmsbuffer OverflowShort 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 handleProgramming C++Delphi LabVIEW ExcelVisual Basic Agilent VEEKey TroubleshootingCold junction compensation. See CJC GlossaryTechnical reference Page Index TC-08 Users Guide WARRANTY/DISCLAIMER Shop online at omega.com

TC-08 specifications

The Omega Speaker Systems TC-08 is a remarkable speaker system that combines advanced technology with exceptional audio performance, making it a favorite among audiophiles and casual listeners alike. With a sleek and modern design, the TC-08 is designed to blend seamlessly into any home audio setup while delivering outstanding sound quality.

One of the standout features of the TC-08 is its wide frequency response range, which captures the full spectrum of sound, from deep bass tones to crisp treble notes. This is achieved through the use of high-quality drivers that are engineered for performance. The 8-inch woofer is designed to deliver powerful low frequencies, providing the depth and impact needed for an immersive listening experience. The tweeter, on the other hand, is finely tuned to ensure that high frequencies are clear and well-defined, allowing listeners to appreciate the intricate details of their favorite music.

The TC-08 also incorporates advanced technologies that enhance the overall audio experience. One such technology is the use of a custom crossover network, which intelligently directs the appropriate frequencies to each driver, ensuring optimal performance and sound clarity. This results in a well-balanced output that can handle various music genres with ease. Furthermore, the speaker’s configuration minimizes distortion, even at higher volumes, meaning listeners can enjoy their music at any level without compromising sound quality.

In addition to its impressive audio capabilities, the Omega Speaker Systems TC-08 is designed with user convenience in mind. The speaker features versatile connectivity options, making it compatible with a wide range of audio sources. Whether connecting to a home theater system, a dedicated stereo setup, or streaming music from a Bluetooth-enabled device, the TC-08 provides users with flexibility and convenience.

The build quality of the TC-08 is also noteworthy. Constructed with durable materials, the speaker is designed to endure the rigors of daily use while maintaining its aesthetic appeal. The elegant finish and thoughtful design details ensure that the TC-08 not only sounds great but also looks great in any environment.

In summary, the Omega Speaker Systems TC-08 offers a blend of excellent audio performance, advanced technologies, and thoughtful design. With its powerful drivers, custom crossover network, and versatile connectivity options, it stands out as a top choice for anyone looking to enhance their listening experience. Whether for casual listening or serious audio enjoyment, the TC-08 is a speaker system that delivers on all fronts.