ADC-20/ADC-24 Programmer's Guide 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. We provide 32-bit and 64-bit Windows drivers to allow you to control the data loggers from your own software.
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.
ADC-20/ADC-24 Programmer's Guide 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 driver using PicoSDK. You can download 32-bit and 64-bit versions of PicoSDK from www.picotech.com/downloads.
(DLL) in the subdirectory of your SDK installation is a driver that allows you to program your ADC-20 or ADC-24 data logger. It is supplied in 32-bit and 64-bit versions. The driver exports the function definitions in standard C format, but this does not limit you to programming in C.
ADC-20/ADC-24 Programmer's Guide 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 14
Driver functions singleEnded); (bConversionFinished == TRUE) // Do something with the value channelNo++; // This would be HRDL_ANALOG_IN_CHANNEL_8 for the ADC-20 (channelNo > HRDL_ANALOG_IN_CHANNEL_16) channelNo = HRDL_ANALOG_IN_CHANNEL_1; else // Do something else while waiting for the reading from the unit...
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.
This function writes information about the ADC-20 or ADC-24 device to a character string. If the info = HRDL_ERROR (7) logger fails to open, only is available to explain why the last open unit call failed. When retrieving the driver version, the handle value is ignored.
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, and digital inputs HRDLSetDigitalIOChannel() enabledDigitalIn=1,...
ADC-20/ADC-24 Programmer's Guide 5.10 HRDLOpenUnit – open a data logger int16_t HRDLOpenUnit void This function opens an ADC-20 or ADC-24 device. The API driver can support up to 20 units. Arguments None Returns –1 if the unit fails to open...
Driver functions 5.11 HRDLOpenUnitAsync – open a unit without blocking the calling thread int16_t HRDLOpenUnitAsync void Opens an ADC-20 or ADC-24 device without blocking the calling thread. Arguments None Returns if there is already an open operation in progress if the open operation has been initiated adc20.en r1...
MSB. Most significant bit. In an n-bit binary word, the most significant bit has the value 2 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:...
Need help?
Do you have a question about the ADC-20 and is the answer not in the manual?
Questions and answers