Omega Speaker Systems TC-08 Network Card User Manual


 
Technical reference
41
3.4
Programming
3.4.1
Introduction
We supply examples for the following programming languages:
C and C++
Delphi
Excel
LabVIEW
Visual Basic
Agilent VEE
The example programs are installed in the Examples subdirectory of your TC-08
program directory.
3.4.2
C 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.3
Delphi
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.