User manual

Programming with the PicoScope 6000 Series62
Copyright © 2009-2013 Pico Technology Ltd. All rights reserved.ps6000pg.en r9
3.9.35
ps6000SetDataBuffers
PICO_STATUS ps6000SetDataBuffers
(
short handle,
PS6000_CHANNEL channel,
short * bufferMax,
short * bufferMin,
unsigned long bufferLth,
PS6000_RATIO_MODE downSampleRatioMode
)
This function tells the driver the location of one or two buffers for receiving data. You
need to allocate memory for the buffers before calling this function. If you do not need
two buffers, because you are not using aggregate mode, then you can optionally use
ps6000SetDataBuffer instead.
Applicability
Block and streaming modes with aggregation.
Arguments
handle, the handle of the required device.
channel, the channel for which you want to set the buffers. Use
one of these constants:
PS6000_CHANNEL_A
PS6000_CHANNEL_B
PS6000_CHANNEL_C
PS6000_CHANNEL_D
* bufferMax, a buffer to receive the maximum data values in
aggregation mode, or the non-aggregated values otherwise.
* bufferMin, a buffer to receive the minimum aggregated data
values. Not used in other downsampling modes.
bufferLth, the size of the bufferMax and bufferMin arrays.
downSampleRatioMode: see ps6000GetValues
Returns
PICO_OK
PICO_INVALID_HANDLE
PICO_INVALID_CHANNEL
PICO_RATIO_MODE_NOT_SUPPORTED
PICO_DRIVER_FUNCTION
PICO_INVALID_PARAMETER