PICO ADC-20 User manual

Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.
ADC-20/ADC-24
User's Guide
adc20.en r5
High-Resolution Data Loggers

ContentsI
Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.adc20.en r5
Contents
....................................................................................................................................11 Introduction
........................................................................................................................................1
1 Overview
....................................................................................................................................22 Notices
........................................................................................................................................2
1 Safety warning
........................................................................................................................................3
2 Legal information
........................................................................................................................................3
3 CE notice
........................................................................................................................................3
4 FCC notice
........................................................................................................................................4
5 Trademarks
........................................................................................................................................4
6 Updates
........................................................................................................................................4
7 Support and refunds
........................................................................................................................................4
8 Company details
....................................................................................................................................53 Getting started
........................................................................................................................................5
1 Installing the software
........................................................................................................................................5
2 Connecting the data logger
........................................................................................................................................7
3 Starting PicoLog
....................................................................................................................................104 About the unit
........................................................................................................................................10
1 Introduction
........................................................................................................................................11
2 Specifications
........................................................................................................................................12
3 Analog connector
........................................................................................................................................13
4 Noise-free resolution and conversion time
........................................................................................................................................13
5 ADC-20/ADC-24 terminal board
........................................................................................................................................13
6 LED
....................................................................................................................................145 Programmer's reference
........................................................................................................................................14
1 Recording methods
........................................................................................................................................14
2 Windows driver
........................................................................................................................................14
3 Scaling
........................................................................................................................................15
4 Driver functions
......................................................................................................................................................................16
1 HRDLCloseUnit
......................................................................................................................................................................17
2 HRDLCollectSingleValueAsync
......................................................................................................................................................................18
3 HRDLGetMinMaxAdcCounts
......................................................................................................................................................................19
4 HRDLGetNumberOfEnabledChannels
......................................................................................................................................................................20
5 HRDLGetSingleValue
......................................................................................................................................................................21
6 HRDLGetSingleValueAsync
......................................................................................................................................................................23
7 HRDLGetTimesAndValues
......................................................................................................................................................................24
8 HRDLGetUnitInfo
......................................................................................................................................................................26
9 HRDLGetValues
......................................................................................................................................................................27
10 HRDLOpenUnit
......................................................................................................................................................................28
11 HRDLOpenUnitAsync
......................................................................................................................................................................29
12 HRDLOpenUnitProgress
......................................................................................................................................................................30
13 HRDLReady
......................................................................................................................................................................31
14 HRDLRun
......................................................................................................................................................................32
15 HRDLSetAnalogInChannel

IIADC-20/ADC-24 User's Guide
Copyright © 2005-2013 Pico Technology Ltd. All rights reserved. adc20.en r5
......................................................................................................................................................................33
16 HRDLSetDigitalIOChannel (ADC-24 only)
......................................................................................................................................................................35
17 HRDLSetInterval
......................................................................................................................................................................36
18 HRDLSetMains
......................................................................................................................................................................37
19 HRDLStop
........................................................................................................................................38
5 Programming languages
......................................................................................................................................................................38
1 C and C++
......................................................................................................................................................................38
2 Delphi V3
......................................................................................................................................................................38
3 Excel
......................................................................................................................................................................39
4 LabVIEW
......................................................................................................................................................................39
5 Visual Basic
........................................................................................................................................40
6 Sequence of calls and data flow
......................................................................................................................................................................40
1 Streaming recording methods
......................................................................................................................................................................42
2 Single-value recording methods
....................................................................................................................................436 Glossary
....................................................................................................................................45
Index

Introduction1
Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.adc20.en r5
1 Introduction
1.1 Overview
The ADC-20 and ADC-24 High-Resolution Data Loggers are multichannel, high-
accuracy USB data loggers for use with PCs. They require no external power supply
and take up no expansion slots. They come complete with PicoLog, a program offering
all the features of a stand-alone data logger.
You should have the following items in your ADC-20 or ADC-24 package:
ADC-20 or ADC-24 High-Resolution Data Logger
Pico Technology Software and Reference CD
Installation Guide
The CD includes driver software that enables you to write your own programs to
control the data logger, using a variety of popular programming languages.
The hardware and software are compatible with Microsoft Windows XP (SP3) or later.
Optional accessories
PP310 ADC-20/ADC-24 Terminal Board

ADC-20/ADC-24 User's Guide 2
Copyright © 2005-2013 Pico Technology Ltd. All rights reserved. adc20.en r5
2 Notices
2.1 Safety warning
We strongly recommend that you read the general safety information below before
using your product for the first time. If the equipment is not used in the manner
specified, then the protection provided may be impaired. This could result in damage
to your computer and/or injury to yourself or others.
Maximum input range. The ADC-20 and ADC-24 are designed to measure voltages
in the range ±2.5 volts, but are protected against overvoltages of ±30 volts. Any
voltages outside the overvoltage protection range may cause permanent damage to
the unit.
Mains voltages. Pico products are not designed for use with mains voltages.
Safety grounding. The ground of every product is connected directly to the ground of
your computer via the interconnecting cable provided. This is done to minimize
interference. If the PC (especially laptops) is not grounded, reading stability cannot be
guaranteed and it may be necessary to manually ground the equipment.
As with most data loggers, you should take care to avoid connecting the inputs of the
product to any equipment which may be at an unsuitable voltage. If in doubt, use a
meter to check that there is no hazardous AC or DC voltage. Failure to check may
cause damage to the product and/or computer and could cause injury to yourself or
others.
You should assume that the product does not have a protective safety earth. Incorrect
configuration and/or use on voltages outside the maximum input range can be
hazardous.
Repairs. The unit contains no user-serviceable parts: repair or calibration of the unit
requires specialised test equipment and must be performed by Pico Technology
Limited or their authorized distributors.

Notices3
Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.adc20.en r5
2.2 Legal information
The material contained in this release is licensed, not sold. Pico Technology Limited
grants a licence to the person who installs this software, subject to the conditions
listed below.
Access. The licensee agrees to allow access to this software only to persons who have
been informed of these conditions and agree to abide by them.
Usage. The software in this release is for use only with Pico products or with data
collected using Pico products.
Copyright. Pico Technology Limited claims the copyright of, and retains the rights to,
all material (software, documents etc.) contained in this release. You may copy and
distribute the entire release in its original state, but must not copy individual items
within the release other than for backup purposes.
Liability. Pico Technology and its agents shall not be liable for any loss, damage or
injury, howsoever caused, related to the use of Pico Technology equipment or
software, unless excluded by statute.
Fitness for purpose. As no two applications are the same, Pico Technology cannot
guarantee that its equipment or software is suitable for a given application. It is your
responsibility, therefore, to ensure that the product is suitable for your application.
Mission-critical applications. This software is intended for use on a computer that
may be running other software products. For this reason, one of the conditions of the
licence is that it excludes usage in mission-critical applications, such as life-support
systems.
Viruses. This software was continuously monitored for viruses during production, but
you are responsible for virus-checking the software once it is installed.
2.3 CE notice
The ADC-20 and ADC-24 meet the intent of EMC directive 89/336/EEC and meets the
EN61326-1 (1997) Class B Emissions and Immunity standard.
The ADC-20 and ADC-24 also meet the intent of the Low Voltage Directive and meet
the BS EN 61010-1:2001 IEC 61010-1:2001 (safety requirements for electrical equipment,
control, and laboratory use) standard.
A Declaration of Conformity is available from Pico Technology Ltd.
2.4 FCC notice
This equipment has been tested and found to comply with the limits for a Class A
digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to
provide reasonable protection against harmful interference when the equipment is
operated in a commercial environment. This equipment generates, uses, and can
radiate radio frequency energy and, if not installed and used in accordance with the
instruction manual, may cause harmful interference to radio communications.
Operation of this equipment in a residential area is likely to cause harmful interference
in which case the user will be required to correct the interference at his or her own
expense.
For safety and maintenance information see the safety warning.
A Declaration of Conformity is available from Pico Technology Ltd.

ADC-20/ADC-24 User's Guide 4
Copyright © 2005-2013 Pico Technology Ltd. All rights reserved. adc20.en r5
2.5 Trademarks
Pico Technology Limited and PicoLog are trademarks of Pico Technology Limited,
registered in the United Kingdom and other countries. Pico Technology acknowledges
the following product names as trademarks of their respective owners: Windows,
Excel, Visual Basic, LabVIEW, Delphi.
2.6 Updates
We provide upgrades, free of charge, from our web site. We reserve the right to
charge for updates or replacements sent out on physical media.
2.7 Support and refunds
If you are dissatisfied with the performance of this software, please contact our
technical support staff, who will try to fix the problem within a reasonable time. If you
are still dissatisfied, please return the product and software to your supplier within 14
days of purchase for a full refund.
2.8 Company details
Address:
Pico Technology
James House
Colmworth Business Park
St Neots
Cambridgeshire
PE19 8YP
United Kingdom
Phone: +44 (0)1480 396395
Fax: +44 (0)1480 396296
Email:
Sales: sal[email protected]
Web site: www.picotech.com

Getting started5
Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.adc20.en r5
3 Getting started
3.1 Installing the software
Before you connect the ADC-20 or ADC-24 to your computer for the first time, you
must install the software supplied on the CD. Insert the Software and Reference CD,
then follow the "Install Software" link.
You may choose to install the driver when you install the PicoLog software, by ticking
the box labelled "32 Bit Drivers" during the installation procedure. Alternatively, you
can download the driver from our website at www.picotech.com.
3.2 Connecting the data logger
You must install the software before plugging in the data logger. When you have
installed the software, connect the data logger's USB cable to a spare USB port on
your computer.
The following instructions describe the installation procedure for Windows XP (SP3).
The procedure for Windows Vista and later operating systems is simpler: once the
software is correctly installed, just plug in the data logger and wait until Vista displays
the message "Device is ready to use".
When you first plug in the device, your computer should show this message:
and then display the New Hardware Found Wizard.

ADC-20/ADC-24 User's Guide 6
Copyright © 2005-2013 Pico Technology Ltd. All rights reserved. adc20.en r5
In the "Welcome to the New Hardware Found Wizard" dialog (above), click Next>.
Wait while the wizard installs the software.
A dialog will appear like the one below.
Click Continue Anyway.
Continue to wait while the wizard installs the software.
When instructed, click Finish to close the wizard.
After a few seconds you should see this message:
Your ADC-20 or ADC-24 Data Logger is now properly installed.

Getting started7
Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.adc20.en r5
3.3 Starting PicoLog
To check that the data logger is working, start the PicoLog application as follows:
1. Start PicoLog. (Click the PicoLog icon: in your Windows Start
menu).
2. Click File.
3. Point to New settings.
4. At the Recording dialog, click OK.
5. At the Sampling Rate dialog, click OK.

ADC-20/ADC-24 User's Guide 8
Copyright © 2005-2013 Pico Technology Ltd. All rights reserved. adc20.en r5
6. In the Converter details dialog, set the Converter type to High Resolution
Data Logger. The device type and serial number should appear in the USB
Devices list, and the USB enumeration progress indicator should gradually
move towards 100%. If the progress indicator does not start moving, disconnect
and reconnect the unit and then press Refresh.
7. Click OK.
8. At the ADC-20 (or ADC-24)channels dialog, double-click on "Channel 1".
9. At the Edit ADC-20 (or ADC-24)Channel dialog, click OK.

Getting started9
Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.adc20.en r5
10. Back at the ADC-20 (or ADC-24)Channels dialog, click OK.
11. The PLW Recorder view should now display the voltage on channel 1 (near 0 mV
if nothing connected).
12. Connect a suitable voltage (for example, from a 1.5 V battery) to the channel. Pin
connections are marked on the logger and also listed in the Analog connector
topic.

ADC-20/ADC-24 User's Guide 10
Copyright © 2005-2013 Pico Technology Ltd. All rights reserved. adc20.en r5
4 About the unit
4.1 Introduction
The ADC-20 and ADC-24 High-Resolution Data Loggers offer the ultimate in precise
and accurate readings. Features such as true differential inputs, galvanic isolation and
software-selectable sample rates all contribute to a superior noise-free resolution. The
ADC-20 is equipped with a 20-bit A/D converter, and can maintain a gain error of
0.2%. The four true differential inputs may be configured as eight single-ended inputs
or any combination in between, such as two differential and four single-ended. The
ADC-24 is equipped with a 24-bit A/D converter, and can maintain a gain error of
0.1%. The eight true differential inputs may be configured as 16 single-ended inputs
or any combination in between. Power and connection to a PC or laptop is through a
USB 1.1 or USB 2.0 port. Using the supplied PicoLog software, you can record, monitor
and analyze collected data, even exporting to third-party applications such as
Microsoft Excel.

About the unit11
Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.adc20.en r5
4.2 Specifications
ADC-20
ADC-24
Input channels
Differential
Single-ended
Configurable up to 4
Configurable up to 8
Configurable up to 8
Configurable up to 16
Conversion time per channel
60 ms, 100 ms, 180 ms, 340 ms, 660 ms
Input voltage ranges
2 ranges
±1250 mV and ±2500 mV
7 ranges
±39 mV to ±2500 mV
Resolution
20 bits
24 bits
Noise-free resolution
See table below
Overvoltage protection
±30 V between any input and common
Common-mode range
Channel to common
Channel to common
Common to earth ground
±1.9 V (±39 mV to ±1250 mV ranges)
±3.0 V (±2500 mV range)
±30 V
Common-mode rejection ratio
Channel to common
Common to earth ground
95 dB (DC to 60 Hz)
>125 dB (DC to 60 Hz)
Noise rejection
120 dB typical at 50 to 60 Hz
Input impedance
2 MΩ(differential), 1 MΩ(single-ended)
Gain error from source impedance
0.5 ppm per ohm source impedance
due to input impedance
Gain error
0.2%
0.1%
(0.2% at ±2500 mV)
Offset error
6 µV (±39 mV range)
7 µV (±78 mV range)
9 µV (±156 mV range)
13 µV (±313 mV range)
20 µV (±625 mV range)
36 µV (±1250 mV range)
400 µV (±2500 mV range)
Digital I/O
None
4
Output level, high
Output level, low
Input level, high
Input level, low
> 2.40 V
< 0.40 V
> 2.20 V
< 0.88 V
Isolation (input to input)
None
Isolation (input to ground)
Galvanic, up to ±30 V
AGND and DGND isolated
Reference output
+2.5 V ±2.5 mV @ 2 mA
Power outputs
+5 V ±1.0 V @ 2 mA
-5 V ±1.5 V @ 2 mA
Environmental conditions
Operating temperature
Quoted input accuracy
Storage temperature
Operating humidity
Storage humidity
0 ºC to 45 ºC
20 ºC to 30 ºC
-20 ºC to 60 ºC
5% to 80% RH, non-condensing
5% to 95% RH, non-condensing
Recommended calibration interval
1 year
PC connection
USB 1.1 (USB 2.0 compatible)
Cable length approx. 4.4 m (13.8 ft)
Input connector
DB25 female
Power supply
100 mA (max.) from USB port
Dimensions
13.5 cm x 18.4 cm x 3.6 cm
(5.31 in x 7.24 in x 1.41 in)
Weight
Approx. 505 g (17.8 oz)

ADC-20/ADC-24 User's Guide 12
Copyright © 2005-2013 Pico Technology Ltd. All rights reserved. adc20.en r5
4.3 Analog connector
Analog inputs are connected to the ADC-20 and ADC-24 through the female DB25
connector. The connections are as follows:
Pin
Function
Pin
Function
1
Channel 2 (Channel 1-)
14
Channel 1
2
Channel 4 (Channel 3-)
15
Channel 3
3
Channel 6 (Channel 5-)
16
Channel 5
4
Channel 8 (Channel 7-)
17
Channel 7
5
Channel 10 (Channel 9-)
18
Channel 9
6
Channel 12 (Channel 11-)
19
Channel 11
7
Channel 14 (Channel 13-)
20
Channel 13
8
Channel 16 (Channel 15-)
21
Channel 15
9
Analog Ground
22
Digital Ground
10
+5 volts
23
Digital I/O 1
11
-5 volts
24
Digital I/O 2
12
+2.5 volts
25
Digital I/O 3
13
Digital I/O 4
Note 1: Channel numbers in brackets apply when the input is set to differential
mode.
Note 2: Channels 9 to 16 exist only on the ADC-24.
Note 3: Digital I/Os 1 to 4 exist only on the ADC-24.
Note 4: Pins 10 and 11 are low-current outputs for powering small sensors. Do
not exceed the current limits given in the Specifications table.
Note 5: The analog and digital grounds are not connected together inside the
unit. You should not connect them together externally, as this would
degrade the accuracy of the unit.
Note 6: For easy connection to the DB25 connector, we recommend that you
use the ADC-20/ADC-24 terminal board.

About the unit13
Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.adc20.en r5
4.4 Noise-free resolution and conversion time
The table below shows the number of noise-free bits of resolution for the full range of
conversion times.
Conversion
time
per
channel
Voltage range
& Noise-free resolution (bits)
39 mV
78 mV
156 mV
313 mV
625 mV
±1250 mV
2500 mV
ADC-24 only
ADC-20 and ADC-24
660 ms
17
18
19
20
20
20
20
340 ms
17
18
19
19
19
20
20
180 ms
16
17
18
19
19
19
19
100 ms
16
17
18
18
18
19
19
60 ms
15
16
17
18
18
18
18
4.5 ADC-20/ADC-24 terminal board
For easy connection to the DB25 connector, we recommend that you use the
ADC-20/ADC-24 terminal board, part number PP310. This has screw terminals to
allow you to connect wires to all of the data logger's inputs and outputs without
soldering. It also has space for voltage-divider resistors, a temperature sensor and a
quad op-amp.
4.6 LED
The ADC-20 and ADC-24 have an LED, next to the entry point of the USB cable, that
you can use to verify that the unit is working. The LED flashes whenever the unit is
taking readings. It also flashes briefly during "enumeration", the process that PicoLog
uses to detect all Pico USB devices plugged in to the computer.

ADC-20/ADC-24 User's Guide 14
Copyright © 2005-2013 Pico Technology Ltd. All rights reserved. adc20.en r5
5 Programmer's reference
5.1 Recording methods
The ADC-20/ADC-24 driver provides three methods of recording data. All these
methods support USB 1.1.
Streaming
The driver constantly polls the device, and samples are placed in a buffer until
retrieved by your application. Precise sample timing is controlled by the unit.
Single Value (blocking)
You make a single request for a sample, blocking the calling thread, and when the
sample has been received the driver returns the value to your application.
Single Value (non-blocking)
You make a single request for a sample without blocking the calling thread, and
when the sample has been received the driver returns the value to your
application.
5.2 Windows driver
The SDK contains 32-bit and 64-bit drivers. Subdirectories called 'C console' and 'C
gui' contain example code.
PicoHRDL.dll is a Windows Dynamic Link Library (DLL), which can be used with C, C
++, Delphi, Visual Basic and National Instruments LabVIEW programs. It can also be
used with programs like Microsoft Excel, where the macro language is a form of Visual
Basic. More than one application can access the Windows DLL at the same time, as
long as the applications do not change the settings for channels that they are not
using. The driver supports all Windows operating systems from Windows XP onwards.
5.3 Scaling
To convert from ADC values to volts, first obtain the minimum and maximum ADC
values for the selected channel by calling the HRDLGetMinMaxAdcCounts function in
the driver. Next, scale the ADC value to the voltage range you specified when you
called HRDLSetAnalogInChannel. You can calculate the voltage range
programmatically by using
Vmax = 2500 mV / (2^r)
where ris the range constant you supplied to HRDLSetAnalogInChannel (0 for
±2500 mV, 1 for ±1250 mV and so on).

Programmer's reference15
Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.adc20.en r5
5.4 Driver functions
The following sections describe the functions available to an application using the
ADC-20 and ADC-24. All functions are C functions using the standard call naming
convention (__stdcall) and are exported with both decorated and undecorated
names.
Function
Description
HRDLCloseUnit
Shuts down unit
HRDLCollectSingleValueAsync
Starts the unit sampling one value without
blocking the calling application's flow
HRDLGetMinMaxAdcCounts
Returns the maximum and minimum ADC count
available for the device
HRDLGetNumberOfEnabledChannels
Returns the number of analog channels enabled
HRDLGetSingleValue
Takes one sample for the specified channel at
the selected voltage range and conversion time
HRDLGetSingleValueAsync
Retrieves the reading when the
HRDLCollectSingleValueAsync has been called
HRDLGetTimesAndValues
Returns the requested number of time-stamped
samples for each enabled channel
HRDLGetUnitInfo
Writes unit information to a character string
HRDLGetValues
Returns the requested number of samples for
each enabled channel
HRDLOpenUnit
Opens data logger unit
HRDLOpenUnitAsync
Opens unit without blocking the calling thread
HRDLOpenUnitProgress
Checks the progress of an asynchronous open
operation
HRDLReady
Indicates when readings are ready to be
collected
HRDLRun
Starts the device sampling and storing the
samples into the driver's buffer
HRDLSetAnalogInChannel
Enables or disables the analog channel
HRDLSetDigitalIOChannel
Sets a digital output or input (ADC-24 only)
HRDLSetInterval
Sets the sampling time interval
HRDLSetMains
Sets the mains noise rejection frequency
HRDLStop
Stops the device when streaming

ADC-20/ADC-24 User's Guide 16
Copyright © 2005-2013 Pico Technology Ltd. All rights reserved. adc20.en r5
5.4.1 HRDLCloseUnit
short HRDLCloseUnit(
short handle )
Shuts down a data logger unit.
Arguments
handle
The handle, returned by HRDLOpenUnit, of the unit being closed
Returns
1 if a valid handle is passed
0 if not

Programmer's reference17
Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.adc20.en r5
5.4.2 HRDLCollectSingleValueAsync
short HRDLCollectSingleValueAsync(
short handle,
short channel,
short range,
short conversionTime,
short singleEnded )
This function starts the unit sampling one value without blocking the calling
application's flow. Used in conjunction with HRDLGetSingleValueAsync and
HRDLReady.
Arguments
handle
Handle returned by HRDLOpenUnit
channel
Channel number to convert. If the channel is not valid then the
function will fail.
range
The voltage range to be used. If the range is not valid, the
function HRDLGetSingleValueAsync will return 0.
conversionTime
The time interval in which the sample should be converted. If the
conversion time is invalid,the function HRDLGetSingleValueAsync
will fail and return 0.
singleEnded
The type of voltage to be measured:
0: differential
nonzero: single-ended
Returns
1 if a valid handle is passed and the settings are correct
0 if not
Other manuals for ADC-20
1
This manual suits for next models
1
Table of contents
Other PICO Data Logger manuals