User`s guide
Programming Support
19
Copyright © 1995-2007 Pico Technology. All rights reserved. adc1042.en-2
5.3
Excel
The easiest way to get data into Excel is to use the PicoLog for Windows program.
However, you can also write an Excel macro which calls adc10xx.dll to read in a set
of data values. The Excel Macro language is similar to Visual Basic.
The example ADC10xx.XLS reads in 20 values from channels 1 and 2, one per
second, and assigns them to cells A1..B20.
Note: it is usually necessary to copy the .DLL file to your directory.
5.4
Visual Basic
Version 4 and 5 (32 bits)
The Examples subdirectory contains the following files:
ADC1032.VBP
ADC1032.BAS
ADC1032.FRM
5.5
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
adc10.llb library in the Examples sub-directory shows how to access these
routines.
To use these routines, copy adc10.llb and adc1032.dll to your LabVIEW
user.lib directory. You will then find four sub-vis to access the ADC-10, ADC-12
ADC-40 and ADC-42, and some example sub-vis which demonstrate how to use them.
You can use one of these sub-vis for converter that you wish to use. The sub-vi
accepts the port (1 for LPT1) and returns a voltage.
5.6
Agilent-VEE
The example routine adc10.vee is in the Examples subdirectory. This example uses
the driver definitions in adc10.vh. It was tested using Agilent-VEE version 5 under
Windows 95.
The example shows how to collect a block of data from the ADC-10. It would be
necessary to alter the scaling for use with the ADC-12, ADC-40 or ADC-42.










