
USB DrDAQ Programmer's Guide
9
Copyright © 2010-2011 Pico Technology Ltd. All rights reserved.
usbdrdaqpg.en
3.5
USB DrDAQ Routines
3.5.1
Summary
The following table explains each of the driver routines supplied with the USB DrDAQ
data logger:
Routine
Description
open and enumerate the unit
close the unit
return various items of information about the
unit
tell the unit to start capturing data
has captured
data
abort data collection
set the sampling speed of the unit
set the trigger on the unit
get a number of sample values after a run
UsbDrDaqGetTriggerTimeOffsetNs
returns the time between the trigger point and
the first post-trigger sample
get a single value from a specified channel
open the unit without waiting for completion
report progress of
discover the scalings, both built-in and custom,
that are available
sets the scaling for a particular channel
sets the arbitrary waveform generator using
standard waveform types
allows full control of the arbitrary waveform
generator
turns the AWG off
control the digital outputs on the unit
used to configure the general-purpose I/Os as
pulse-width modulation outputs
used to configure the general-purpose I/Os as
digital inputs
used to configure the general-purpose I/Os for
pulse counting and to start counting
will return the current pulse count
enables or disables RGB mode on the LED
used to set the colour of the LED once RGB
mode has been enabled
returns a set of information about the currently
selected scaling for the specified channel
The driver allows you to do the following:
Identify and open the logger
Take a single reading from a particular channel
Collect a block of samples at fixed time intervals from one or more channels
Set up a trigger event for a particular channel
Get information about scalings available for a channel
Select a scaling for a channel
Control and read general-purpose I/Os
Control arbitrary waveform generator
11
12
13
14
15
14
16
17
18
19
21
21
22
23
22
24
25
26
27
28
29
30
31
32
33
34
35
36