User Manual

ADC-20/ADC-24 User's Guide 38
Copyright © 2005-2010 Pico Technology Ltd. All rights reserved. adc20.en
5.5
Programming languages
The software installed with your ADC-20 or ADC-24 includes examples for the
following programming languages:
C and C++
Delphi
Excel
LabVIEW
Visual Basic
Agilent-VEE
The example programs are installed in the Examples\ADC20 subdirectory of your
PicoLog installation.
5.5.1
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 for
an application containing the following files:
HRDLGui.c (graphical user interface) or HRDL.c (console)
PicoHRDL.lib (Microsoft C) or PicoHRDLbc.lib (for Borland C)
The following files must be in the same directory:
HRDL.h
PicoHRDL.dll
resource.h (required by HRDLGui.c)
HRDLGui.rc (required by HRDLGui.c)
C++
If HRDL.h is included in a C++ program, the PREF0 macro expands to extern "C": this
disables name-decoration (as Microsoft calls it), and enables C++ routines to make
calls to the driver routines using C headers.
5.5.2
Delphi V3
You will need the following files from the SDK:
hrdl.dpr, a complete program that opens the driver and reads values from
channel 1
hrdlfm.pas, required for streaming or single-value data collection
hrdlfm.dfm
The file hrdl.inc contains a set of procedure prototypes that you can include in your
own programs.