Pico PicoLog® 1216 0 - 2.5 Vdc USB Multi-channel voltage data logger PP547 数据表
产品代码
PP547
PicoLog 1000 Series Programmer's Guide
25
Copyright © 2009 Pico Technology Ltd. All rights reserved.
pl1000pg.en
3.4
Example programs
3.4.1
Introduction
We supply examples for the following programming languages:
3.4.2
C and C++
C
Use the following files:
pl1000.lib
pl1000api.h
pl1000bc.lib
pl1000con.c
pl1000api.h
pl1000bc.lib
pl1000con.c
C++
C++ programs can access all versions of the driver. If
pl1000api
.h
is 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.
headers.
3.4.3
Delphi
pl1000.dpr
is a complete program that opens the driver and reads values from
Channel 1.
The file
pl1000.inc
contains a set of procedure prototypes that you can include in
your own programs.
You will also require the following files:
pl1000.vh
pl1000fm.dfm
pl1000.pas
pl1000fm.dfm
pl1000.pas
3.4.4
Excel
The easiest way to transfer data to Excel is to use PicoLog. However, you can also
write an Excel macro which calls
write an Excel macro which calls
pl1000.dll
to read in a set of data values. The
Excel macro language is similar to Visual Basic.
The example
pl1000.xls
reads in 20 values from Channels 1 and 2, one per second,
and assigns them to cells A1..B20.
Use Excel Version 7 or higher.
Note that it is usually necessary to copy the DLL file to the
\windows\system
directory.
25
25
25
25
26
26
26