files:
a100test.c
a100test.rc
either adc10016.lib (All 16-bit applications)
or adc10032.lib (Borland 32-bit applications)
or adc100ms.lib (Microsoft Visual C 32-bit applications)
The following files must be in the same directory:
a100test.rch
adc100.h
either adc10016.dll (All 16-bit applications)
or adc10032.dll (All 32-bit applications)
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 adc10016.lib (All 16-bit applications)
or adc10032.lib (Borland 32-bit applications)
or adc100ms.lib (Microsoft Visual C 32-bit applications)
The following files must be in the same directory:
adc100.h
either adc10016.dll (All 16-bit applications)
or adc10032.dll (All 32-bit applications)
C++
C++ programs can access all versions of the driver. If adc100.h or adc100w.h are included in a C++ program,
the PREF1 macro expands to extern “C”: this disables name-mangling (or decoration, as Microsoft call it), and
enables C++ routines to make calls to the driver routines using C headers.
Pascal
The program adc100.pas can be compiled either as a stand-alone program {$DEFINE MAIN} or as a unit
which can be linked into other programs {$UNDEF MAIN}.
adc100.pas includes the driver using the {$L adc100drv.obj} command: it also provides pascal
prototypes for each of the routine in the driver.
This program has been tested with Borland Turbo Pascal V6.0.
Basic
The DOS driver does not work with DOS Basic.
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.
Excel
The easiest way to get data into Excel is to use the Picolog for Windows program.
Comentários a estes Manuais