User Manual
Programming with the PicoScope 4000 Series64
Copyright © 2008-2011 Pico Technology Ltd. All rights reserved.ps4000pg.en
4.10.42
ps4000SetDataBuffersWithMode
PICO_STATUS ps4000SetDataBuffersWithMode
(
short handle,
PS4000_CHANNEL channel,
short * bufferMax,
short * bufferMin,
long bufferLth,
RATIO_MODE mode
)
This function registers your data buffers, for receiving aggregated data, with the
PicoScope 4000 driver. You need to allocate memory for the buffers before calling this
function.
Applicability
All sampling modes.
For non-aggregated data, use ps4000SetDataBuffer instead.
Arguments
handle, the handle of the required device.
channel, the channel for which you want to set the buffers. Use
one of these constants: -
PS4000_CHANNEL_A
PS4000_CHANNEL_B
PS4000_CHANNEL_C (4-channel scopes only)
PS4000_CHANNEL_D (4-channel scopes only)
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 data values when
downSampleRatio > 1. Not used when downSampleRatio is 1.
bufferLth, specifies the size of the bufferMax and bufferMin
arrays.
mode, the data reduction mode to use
Returns
PICO_OK
PICO_INVALID_HANDLE
PICO_INVALID_CHANNEL