Technical reference
19
© Copyright 2004-2007 Pico Technology Limited. All rights reserved.
adc100.en
3.4.3
Excel
The easiest way to transfer data into Excel is to use PicoLog.
However, you can also write an Excel macro which calls
adc100xx.dll
to read in a
set of data values. The Excel Macro language is similar to Visual Basic.
The example
ADC100xx.XLS
reads in 20 values from channels 1 and 2, one per
second, and assigns them to cells A1..B20.
Note that it is usually necessary to copy the .DLL file to your directory.
3.4.4
LabVIEW
The routines described here were tested using LabVIEW for Windows 95 version 4.0.
While it is possible to access all of the driver routines described earlier, it is easier to
use the special LabVIEW access routines if only single readings are required. The
adc100.llb
library in the
DRIVERS
subdirectory shows how to access these routines.
To use these routines, copy
adc100.llb
and
adc10032.dll
to your LabVIEW
user.lib
directory. You will then find three sub-vis to access the ADC-100 and
ADC-101.
Adc100_single
takes a single reading from a specified port and channel
adc100_example
shows how to call adc100_single repeatedly.
Adc100_block
shows how to collect a block of data at high speeds.
3.4.5
Visual Basic
Version 4 and 5 (32 bits)
The
DRIVERS
subdirectory contains the following files:
ADC10032.VBP
ADC10032.BAS
ADC10032.FRM
3.4.6
Agilent VEE
The example program
adc100.vee
is in the
drivers
subdirectory.
The example shows how to collect a block of data from the ADC-100. It would be
necessary to adjust the scaling for use with the ADC-101.
You will need to copy the following file into the program directory:
adc100.vh
3.4.7
Linux
The ADC-100 and ADC-101 are supported under Linux using the
picopar
parallel port
driver kit. The tar file
picopar.tar,
available from the Pico web site, contains source
code for the driver and example programs, together with full instructions to compile,
install and run the software.
The Linux parallel port driver kit supports only units connected direct to the parallel
port: it does not support USB-connected devices.