ADC-24 PICO TECHNOLOGY, ADC-24 Datasheet - Page 29

DATALOGGER, HI-RES

ADC-24

Manufacturer Part Number
ADC-24
Description
DATALOGGER, HI-RES
Manufacturer
PICO TECHNOLOGY
Datasheet

Specifications of ADC-24

Connector Type
D25 Female
Interface
USB 1.1 (USB 2.0 Compatible)
No. Of Channels
16
Power Supply
From USB
Resolution
24 Bits
Interface Type
USB 1.1 (USB 2.0 Compatible)
Rohs Compliant
NA
Lead Free Status / RoHS Status
na
ADC-20/ADC-24 User's Guide
5.4.9
Copyright © 2005-2010 Pico Technology Ltd. All rights reserved.
This function returns the requested number of samples for each enabled channel, so
the size of the values array needs to be (number of values) x (number of enabled
channels). When one or more of the digital IOs are enabled as inputs, they count as
one additional channel. The function informs the user if the voltages of any of the
enabled channels have overflowed.
Arguments
handle
values
overflow
noOfValues
Returns
A non-zero number if successful indicating the number of values returned, or
0 if the call failed or no values available
Ordering of returned data (example)
When two analog channels (e.g. 1 and 5) are enabled and a digital channel is set as
an input, the data are returned in the following order.
where n represents the value returned by the function and 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.
Digital inputs
The digital channels are represented by a binary bit pattern with 0 representing off,
and 1 representing on. Digital input 1 is in bit 0.
HRDLGetValues
long HRDLGetValues (
Sample No: 0
Channel:
short handle,
long
short * overflow,
long
Returned by HRDLOpenUnit.
Pointer to a long where the sample values are written. If more than
one channel is active, the samples are interleaved. If digital channels
are enabled then they are always the first value. See table below for
the order in which data are returned.
Pointer to a short indicating any inputs that have exceeded their
maximum voltage range. Channels with overvoltages are indicated
by a high bit, with the LSB indicating channel 1 and the MSB channel
16.
The number of samples to collect for each active channel
* values,
noOfValues )
DI 1
1
2
5
3
DI 1
4
5
5
6
DI 1
7
8
5
9
DI 1
10 11 12 13 14 . n-3 n-2 n-1
5
DI 1
5
. DI
1
adc20.en
5
26

Related parts for ADC-24