User Manual

ADC-20/ADC-24 User's Guide 40
Copyright © 2005-2010 Pico Technology Ltd. All rights reserved. adc20.en
5.6
Sequence of calls and data flow
The C sample program, HRDL.c, demonstrates the use of all the functions of the API
driver, and includes examples showing each mode of operation.
5.6.1
Streaming recording methods
5.6.1.1
Collecting a block of data
This method collects a single block of data and then stops.
Open the data logger with one of the HRDLOpenUnit calls
Set mains noise rejection with HRDLSetMains
Set the analog or/and digital channels
Set the sample interval with HRDLSetInterval
Start the unit collecting samples by calling HRDLRun with method = BM_BLOCK
Loop
Repeat Loop until ready (HRDLReady)
Collect data with HRDLGetValues
Repeat from "Start the unit"