37
Programmer's reference
5.6
Sequence of calls and data flow
The C sample program,
hrdlcon.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
Set the analog or/and digital channels
Set the sample interval with
Start the unit collecting samples by calling
with
method = BM_BLOCK
Loop
Repeat Loop until ready (
)
Collect data with
Repeat from "Start the unit" until you have finished collecting data.
Close the connection to the unit with
adc20.en r6
Copyright © 2005–2016 Pico Technology Ltd. All rights reserved.