User Manual
Programmer's reference17
Copyright © 2005-2010 Pico Technology Ltd. All rights reserved.adc20.en
5.4.2
HRDLCollectSingleValueAsync
short HRDLCollectSingleValueAsync(
short handle,
short channel,
short range,
short conversionTime,
short singleEnded )
This function starts the unit sampling one value without blocking the calling
application's flow. Used in conjunction with HRDLGetSingleValueAsync and
HRDLReady.
Arguments
handle
Handle returned by HRDLOpenUnit
channel
Channel number to convert. If the channel is not valid then the
function will fail.
range
The voltage range to be used. If the range is not valid, the
function HRDLGetSingleValueAsync will return 0.
conversionTime
The time interval in which the sample should be converted. If the
conversion time is invalid,the function HRDLGetSingleValueAsync
will fail and return 0.
singleEnded
The type of voltage to be measured:
0: differential
nonzero: single-ended
Returns
1 if a valid handle is passed and the settings are correct
0 if not