User manual
PicoScope 6000 Series Programmer's Guide 39
Copyright © 2009-2013 Pico Technology Ltd. All rights reserved. ps6000pg.en r9
3.9.16
ps6000GetValuesAsync
PICO_STATUS ps6000GetValuesAsync
(
short handle,
unsigned long startIndex,
unsigned long noOfSamples,
unsigned long downSampleRatio,
PS6000_RATIO_MODE downSampleRatioMode,
unsigned long segmentIndex,
void * lpDataReady,
void * pParameter
)
This function returns data either with or without downsampling, starting at the
specified sample number. It is used to get the stored data from the scope after data
collection has stopped. It returns the data using a callback.
Applicability
Streaming mode and block mode
Arguments
handle, the handle of the required device
startIndex: see ps6000GetValues
noOfSamples: see ps6000GetValues
downSampleRatio: see ps6000GetValues
downSampleRatioMode: see ps6000GetValues
segmentIndex: see ps6000GetValues
lpDataReady, a pointer to the user-supplied function that will be
called when the data is ready. This will be a ps6000DataReady
function for block-mode data or a ps6000StreamingReady function
for streaming-mode data.
pParameter, a void pointer that will be passed to the callback
function. The data type is determined by the application.
Returns
PICO_OK
PICO_INVALID_HANDLE
PICO_NO_SAMPLES_AVAILABLE
PICO_DEVICE_SAMPLING
PICO_NULL_PARAMETER
PICO_STARTINDEX_INVALID
PICO_SEGMENT_OUT_OF_RANGE
PICO_INVALID_PARAMETER
PICO_DATA_NOT_AVAILABLE
PICO_INVALID_SAMPLERATIO
PICO_INVALID_CALL
PICO_DRIVER_FUNCTION