EasyManua.ls Logo

PICO USB TC-08

PICO USB TC-08
43 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Technical reference
34
© 2005 Pico Technology Limited. All rights reserved.
USBTC08044-2
3.4
Programming
3.4.1
Introduction
We supply examples for the following programming languages:
C and C++
Delphi
Excel
LabVIEW
Visual Basic
HP-Vee
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_tc08tes.c
usb_tc08tes.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_tc08tes.rch
usbtc08.h
usb_tc0832.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.