User manual

Writing your own software14
Copyright © 2010-2011 Pico Technology Ltd. All rights reserved.usbdrdaqpg.en
3.5.5
UsbDrDaqRun
PICO_STATUS UsbDrDaqRun(
short handle,
unsigned long no_of_values,
UsbDrDaq_BLOCK_METHOD method
)
This function tells the unit to start capturing data.
Arguments:
handle: handle returned from UsbDrDaqOpenUnit or
UsbDrDaqOpenUnitProgress
no_of_values: the number of samples the unit should collect
method: which method to use to collect the data, from the following
list:
BM_SINGLE
BM_WINDOW
BM_STREAM
See "Capture modes " for details.
Returns:
PICO_OK
PICO_INVALID_HANDLE
PICO_USER_CALLBACK
PICO_INVALID_CHANNEL
PICO_TOO_MANY_SAMPLES
PICO_INVALID_TIMEBASE
PICO_NOT_RESPONDING
PICO_CONFIG_FAIL
PICO_INVALID_PARAMETER
PICO_NOT_RESPONDING
PICO_TRIGGER_ERROR
11
23
8
37
37
37
37
37
37
37
37
37
37
37