User manual
PicoScope 6000 Series Programmer's Guide 61
Copyright © 2009-2013 Pico Technology Ltd. All rights reserved. ps6000pg.en r9
3.9.34
ps6000SetDataBufferBulk
PICO_STATUS ps6000SetDataBufferBulk
(
short handle,
PS6000_CHANNEL channel,
short * buffer,
unsigned long bufferLth,
unsigned long waveform,
PS6000_RATIO_MODE downSampleRatioMode
)
This function allows you to associate a buffer with a specified waveform number and
input channel in rapid block mode. The number of waveforms captured is determined
by the nCaptures argument sent to ps6000SetNoOfCaptures. There is only one
buffer for each waveform because the only downsampling mode that requires two
buffers, aggregation mode, is not available in rapid block mode. Call one of the
GetValues functions to retrieve the data after capturing.
Applicability
Rapid block mode without aggregation.
Arguments
handle, the handle of the device
channel, the input channel to use with this buffer
buffer, an array in which the captured data is stored
bufferLth, the size of the buffer
waveform, an index to the waveform number.
Range: 0 to nCaptures - 1
downSampleRatioMode: see ps6000GetValues
Returns
PICO_OK
PICO_INVALID_HANDLE
PICO_INVALID_CHANNEL
PICO_INVALID_PARAMETER
PICO_RATIO_MODE_NOT_SUPPORTED
PICO_DRIVER_FUNCTION