
USB DrDAQ Programmer's Guide
21
Copyright © 2010-2011 Pico Technology Ltd. All rights reserved.
usbdrdaqpg.en
3.5.12 UsbDrDaqGetSingle
PICO_STATUS UsbDrDaqGetSingle(
short handle,
USB_DrDAQ_INPUTS channel,
unsigned short * value
unsigned short * overflow
)
This function returns a single sample value from the specified input channel.
Arguments:
handle:
or
channel:
which channel to sample
value:
a location where the function will write the sample value
overflow:
on exit, a bit field indicating which, if any, input
channels overflowed the input range of the device. A bit set to 1
indicates an overflow. The least significant bit corresponds to channel
1. May be
NULL
if an overflow warning is not required.
Returns:
11
23
37
37
37
37
37
37
37
37
37
37