User Manual

Programmer's reference35
Copyright © 2005-2010 Pico Technology Ltd. All rights reserved.adc20.en
5.4.17
HRDLSetInterval
short HRDLSetInterval(
short handle,
long sampleInterval_ms,
short conversionTime )
This sets the sampling time interval. The number of channels active must be able to
convert within the specified interval.
Arguments
handle
Handle returned by HRDLOpenUnit.
sampleInterval_ms
Time interval in milliseconds within which all conversions must
take place before the next set of conversions starts.
conversionTime
The amount of time given to one channel's conversion. This
must be one of the constants below.
Returns
0 if failed
1 if successful
If the function fails, call HRDLGetUnitInfo with info = HRDL_SETTINGS_ERRORS for the
specific settings error.
Conversion times
conversionTime
Conversion time
HRDL_60MS (0)
60 ms
HRDL_100MS (1)
100 ms
HRDL_180MS (2)
180 ms
HRDL_340MS (3)
340 ms
HRDL_660MS (4)
660 ms