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

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
21
5.4.6
adc20.en
This function retrieves the reading when the
called.
Arguments
handle
value
overflow
Returns
1
0
Sample code
Code extract to get a single value reading without blocking the calling thread:
HRDLGetSingleValueAsync
short HRDLGetSingleValueAsync (
void main()
{
BOOL
short channelNo;
long
short handle;
// open and initialise the unit
// set the channel parameters
channelNo = HRDL_ANALOG_IN_CHANNEL_1;
range = HRDL_2500_MV;
singleEnded = TRUE;
bConversionFinished = FALSE;
while (true)
{
short handle,
long
short * overflow )
if a valid handle is passed and the function succeeds
if not
PollSingleValue(handle,
if(bConversionFinished == TRUE)
{
.
.
.
// do something with the value
channelNo++;
Handle returned by
Pointer to a long where the ADC value will be written
Pointer to a value that indicates when the voltage on a channel has
exceeded the upper or lower limits.
Bit 0: Channel 1
...
Bit 15: Channel 16
bConversionFinished = FALSE;
value;
* value,
&bConversionFinished,
&value,
channelNo,
range,
singleEnded);
HRDLOpenUnit
HRDLCollectSingleValueAsync
Copyright © 2005-2010 Pico Technology Ltd. All rights reserved.
Programmer's reference
has been

Related parts for ADC-24