PICO ADC-20 User Manual

High-resolution data loggers
Hide thumbs Also See for ADC-20:

Advertisement

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ADC-20 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for PICO ADC-20

  • Page 1 ADC-20/ADC-24 High-Resolution Data Loggers User's Guide adc20.en r5 Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.
  • Page 2: Table Of Contents

    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 adc20.en r5 Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.
  • Page 3 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 6 Glossary ............................43 ............................45 Index Copyright © 2005-2013 Pico Technology Ltd. All rights reserved. adc20.en r5...
  • Page 4: Introduction

    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...
  • Page 5: Notices

    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.
  • Page 6: Legal Information

    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.
  • Page 7: Trademarks

    ADC-20/ADC-24 User's Guide 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.
  • Page 8: Getting Started

    Getting started 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.
  • Page 9 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. Copyright © 2005-2013 Pico Technology Ltd. All rights reserved. adc20.en r5...
  • Page 10: Starting Picolog

    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. adc20.en r5 Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.
  • Page 11 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. Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.
  • Page 12 Getting started 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...
  • Page 13: About The Unit

    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.
  • Page 14: Specifications

    100 mA (max.) from USB port 13.5 cm x 18.4 cm x 3.6 cm Dimensions (5.31 in x 7.24 in x 1.41 in) Weight Approx. 505 g (17.8 oz) adc20.en r5 Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.
  • Page 15: Analog Connector

    ADC-20/ADC-24 User's Guide Analog connector Analog inputs are connected to the ADC-20 and ADC-24 through the female DB25 connector. The connections are as follows: Function Function Channel 2 (Channel 1-) Channel 1 Channel 4 (Channel 3-) Channel 3 Channel 6 (Channel 5-)
  • Page 16: Noise-Free Resolution And Conversion Time

    It also has space for voltage-divider resistors, a temperature sensor and a quad op-amp. 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.
  • Page 17: Programmer's Reference

    ADC-20/ADC-24 User's Guide Programmer's reference 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.
  • Page 18: Driver Functions

    Programmer's reference 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.
  • Page 19: Hrdlcloseunit

    ) Shuts down a data logger unit. Arguments handle The handle, returned by HRDLOpenUnit, of the unit being closed Returns if a valid handle is passed if not Copyright © 2005-2013 Pico Technology Ltd. All rights reserved. adc20.en r5...
  • Page 20: Hrdlcollectsinglevalueasync

    0. singleEnded The type of voltage to be measured: 0: differential nonzero: single-ended Returns if a valid handle is passed and the settings are correct if not adc20.en r5 Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.
  • Page 21: Hrdlgetminmaxadccounts

    Pointer to a long, used to return the maximum ADC count available for the unit referred to by handle channel Channel number for which maximum and minimum ADC count are required Returns if a valid handle is passed if not Copyright © 2005-2013 Pico Technology Ltd. All rights reserved. adc20.en r5...
  • Page 22: Hrdlgetnumberofenabledchannels

    Arguments handle Handle returned by HRDLOpenUnit nEnabledChannels Pointer to a short, where the number of channels enabled will be written Returns if a valid handle is passed if not adc20.en r5 Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.
  • Page 23: Hrdlgetsinglevalue

    = HRDL_ERROR (7) error code. If the error code is (5), then call HRDLGetUnitInfo again HRDL_SETTINGS with to determine the settings error. info = HRDL_SETTINGS_ERROR (8) Copyright © 2005-2013 Pico Technology Ltd. All rights reserved. adc20.en r5...
  • Page 24: Hrdlgetsinglevalueasync

    = HRDL_ANALOG_IN_CHANNEL_1; range = HRDL_2500_MV; singleEnded = TRUE; bConversionFinished = FALSE; while (true) PollSingleValue(handle, &bConversionFinished, &value, channelNo, range, singleEnded); if(bConversionFinished == TRUE) // do something with the value channelNo++; adc20.en r5 Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.
  • Page 25 ADC-20/ADC-24 User's Guide // this would be HRDL_ANALOG_IN_CHANNEL_8 for the ADC-20 if(channelNo > HRDL_ANALOG_IN_CHANNEL_16) channelNo = HRDL_ANALOG_IN_CHANNEL_1; else // do something else while waiting for the reading from the // unit void PollSingleValue(short handle, BOOL *bConversionFinished, long *lValue, short channel,...
  • Page 26: Hrdlgettimesandvalues

    DI the digital inputs. The channels are always ordered from channel 1 up to the maximum channel number (ADC-24: channel 16, ADC-20: channel 8). If one or more digital channels are set as inputs then the first sample contains the digital channels.
  • Page 27: Hrdlgetunitinfo

    HRDL_KERNEL_DRIVER_VERSION (6) Kernel driver version HRDL_ERROR (7) One of the error codes listed in Error codes below HRDL_SETTINGS_ERROR (8) One of the error codes listed in Setting Error Codes below Copyright © 2005-2013 Pico Technology Ltd. All rights reserved. adc20.en r5...
  • Page 28 SE_INVALID_PARAMETER (6) One or more parameters are invalid SE_CONVERSION_IN_PROGRESS (7) A conversion is in progress for a single asynchronous operation SE_COMMUNICATION_FAILED (8) SE_OK (9) All settings have been completed successfully adc20.en r5 Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.
  • Page 29: Hrdlgetvalues

    DI the digital inputs. The channels are always ordered from channel 1 up to the maximum channel number (ADC-24: channel 16, ADC-20: channel 8). If one or more digital channels are set as inputs then the first sample contains the digital channels.
  • Page 30: Hrdlopenunit

    This function opens a data logger. The API driver can support up to four units. Arguments None Returns if the unit fails to open if no unit is found >= 1 handle to the device opened adc20.en r5 Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.
  • Page 31: Hrdlopenunitasync

    ) Opens a data logger without blocking the calling thread. Arguments None Returns if there is already an open operation in progress if the open operation has been initiated Copyright © 2005-2013 Pico Technology Ltd. All rights reserved. adc20.en r5...
  • Page 32: Hrdlopenunitprogress

    Pointer to a short to which the percentage progress is to be written. 100% implies that the open operation is complete Returns if open operation is still in progress if the open operation is complete adc20.en r5 Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.
  • Page 33: Hrdlready

    This function indicates when the readings are ready to be retrieved from the driver. Arguments handle Handle returned by HRDLOpenUnit. Returns 0 if not ready, or failed 1 if ready Copyright © 2005-2013 Pico Technology Ltd. All rights reserved. adc20.en r5...
  • Page 34: Hrdlrun

    1 if successful Sampling methods method Description BM_BLOCK (0) Collect a single block and stop BM_WINDOW (1) Collect a sequence of overlapping blocks BM_STREAM (2) Collect a continuous stream of data adc20.en r5 Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.
  • Page 35: Hrdlsetanaloginchannel

    HRDL_625_MV (2) ±625 mV ADC-24 only HRDL_313_MV (3) ±312.5 mV ADC-24 only HRDL_156_MV (4) ±156.25 mV ADC-24 only HRDL_78_MV (5) ±78.125 mV ADC-24 only HRDL_39_MV (6) ±39.0625 mV ADC-24 only Copyright © 2005-2013 Pico Technology Ltd. All rights reserved. adc20.en r5...
  • Page 36: Hrdlsetdigitaliochannel (Adc-24 Only)

    Pin values for directionOut, digitalOutPinState enabledDigitalIn directionOut / enabledDigitalIn Description HRDL_DIGITAL_IO_CHANNEL_1 (1) IO Pin 1 HRDL_DIGITAL_IO_CHANNEL_2 (2) IO Pin 2 HRDL_DIGITAL_IO_CHANNEL_3 (4) IO Pin 3 HRDL_DIGITAL_IO_CHANNEL_4 (8) IO Pin 4 adc20.en r5 Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.
  • Page 37 When a digital channel has been selected as an output, it can then be set on or off with the parameter, again using binary bit patterns digitalOutputPinState to represent the different digital channels. The default setting for the digital channels is "output, off". Copyright © 2005-2013 Pico Technology Ltd. All rights reserved. adc20.en r5...
  • Page 38: Hrdlsetinterval

    = HRDL_SETTINGS_ERRORS for the specific settings error. Conversion times conversionTime Conversion time HRDL_60MS (0) 60 ms HRDL_100MS (1) 100 ms HRDL_180MS (2) 180 ms HRDL_340MS (3) 340 ms HRDL_660MS (4) 660 ms adc20.en r5 Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.
  • Page 39: Hrdlsetmains

    Handle returned by HRDLOpenUnit. sixtyHertz Specifies whether 50 Hz or 60 Hz noise rejection is applied. 0: reject 50 Hz <> 0: reject 60 Hz Returns 0 if failed 1 if successful Copyright © 2005-2013 Pico Technology Ltd. All rights reserved. adc20.en r5...
  • Page 40: Hrdlstop

    Programmer's reference 5.4.19 HRDLStop void HRDLStop ( short handle ) This function stops the device when streaming. Arguments handle Handle returned by HRDLOpenUnit. adc20.en r5 Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.
  • Page 41: Programming Languages

    ADC-20/ADC-24 User's Guide Programming languages The ADC-20/ADC-24 SDK includes examples for the following programming languages: C and C++ Delphi Excel LabVIEW Visual Basic 5.5.1 C and C++ The C example program is a generic windows application (it does not use Borland AppExpert or Microsoft AppWizard).
  • Page 42: Labview

    You can use one of the sub-VIs supplied for each of the channels that you wish to measure. The VI accepts the handle and the channel (1 to 8 for ADC-20, 1 to 16 for ADC-24; only odd-numbered channels in single-ended mode) and returns the voltage in millivolts.
  • Page 43: Sequence Of Calls And Data Flow

    Set the sample interval with HRDLSetInterval Start the unit collecting samples by calling HRDLRun with method = BM_BLOCK Loop Repeat Loop until ready (HRDLReady) Collect data with HRDLGetValues Repeat from "Start the unit" Copyright © 2005-2013 Pico Technology Ltd. All rights reserved. adc20.en r5...
  • Page 44 Set the sample interval with HRDLSetInterval Start the unit collecting samples by calling HRDLRun with method = BM_WINDOW BM_STREAM Loop Repeat Loop until ready (HRDLReady) Collect data whenever you want with HRDLGetValues adc20.en r5 Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.
  • Page 45: Single-Value Recording Methods

    Set mains noise rejection with HRDLSetMains Start the conversion for a single reading with HRDLCollectSingleValueAsync Wait until the reading is ready (HRDLReady) Get the reading from the driver with HRDLGetSingleValueAsync Copyright © 2005-2013 Pico Technology Ltd. All rights reserved. adc20.en r5...
  • Page 46: Glossary

    Data logger. A measuring instrument that monitors one or more analog signals, samples them at pre-programmed intervals, then accurately converts the samples to digital data and stores them in memory. The ADC-20 and ADC-24 use your PC for storage and display.
  • Page 47 Noise rejection. The ability of the data logger to attenuate noise in a given frequency range. The ADC-20/ADC-24 can be programmed to reject noise at either 50 hertz or 60 hertz. The noise rejection ratio is defined as:...
  • Page 48: Index

    Input voltage ranges 2, 11 Installing software Interference Earthing Isolation Email address EMC/EMI Emissions LabVIEW Environmental conditions Error codes Legal information Excel Liability Low Voltage Directive Fax number adc20.en r5 Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.
  • Page 49 Visual Basic Recording methods 14, 41, 42 block single-value blocking single-value non-blocking streaming 40, 41 windowed Reference output Repairs Resolution noise-free Safety warning Scaling Sequence of calls Settings error codes Copyright © 2005-2013 Pico Technology Ltd. All rights reserved. adc20.en r5...
  • Page 50 Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.
  • Page 51 Pico Technology James House Colmworth Business Park ST. NEOTS Cambridgeshire PE19 8YP Tel: +44 (0) 1480 396 395 Fax: +44 (0) 1480 396 296 www.picotech.com adc20.en r5 02.07.2013 Copyright © 2005-2013 Pico Technology Ltd. All rights reserved.

This manual is also suitable for:

Adc-24

Table of Contents