ADC 100 Betriebsanweisung Seite 20

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 25
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 19
ADC-100 User's Guide18
© Copyright 2004-2007 Pico Technology Limited. All rights reserved.adc100.en
3.4
Programming
3.4.1
C / C++
C
There are two C example programs: one is a very simple GUI application, and the
other is a more comprehensive console mode program that demonstrates all of the
facilities of the driver.
The GUI example program is a generic windows application- ie it does not use Borland
AppExpert or Microsoft AppWizard. To compile the program, create a new project for a
Windows Application containing the following files:
a100test.c
a100test.rc
either adc10032.lib (Borland 32-bit applications)
or adc100ms.lib (Microsoft Visual C 32-bit applications)
The following files must be in the same directory:
adc100w.h
a100test.rch
adc10032.dll
The console example program is a generic windows application- ie it does not use
Borland AppExpert or Microsoft AppWizard. To compile the program, create a new
project for a Console Application containing the following files:
a100con.c
either adc10032.lib (Borland 32-bit applications)
or adc100ms.lib (Microsoft Visual C 32-bit applications)
The following files must be in the same directory:
adc100w.h
adc10032.dll
C++
C++ programs can access all versions of the driver. If adc100w.h are included in a
C++ program, the PREF1 macro expands to extern "C". This disables
name-decoration and enables C++ routines to make calls to the driver routines using
C headers.
3.4.2
Delphi
adc100pr.dpr is a complete program which opens the driver and reads values from
channel 1.
The file ADC100.inc contains a set of procedure prototypes that you can include into
your own programs.
You will also need to copy the following files into the program directory:
adc100fm.dfm
adc100fm.pas
Seitenansicht 19
1 2 ... 15 16 17 18 19 20 21 22 23 24 25

Kommentare zu diesen Handbüchern

Keine Kommentare