
Prog ramming the 3000A Series oscilloscopes
70
Copyright © 2011-2013 Pico Technology Limited. All rights reserved.
ps3000abpg.en r9
2.12.42 ps3000aSetDataBuffers
PICO_STATUS ps3000aSetDataBuffers
(
short handle,
short * bufferMax,
short * bufferMin,
long bufferLth,
unsigned short segmentIndex,
)
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
mode, then you can optionally use
Applicability
Arguments
handle,
the handle of the required device.
channel,
the channel for which you want to set the buffers. Use
one of these constants:
PS3000A_CHANNEL_A
PS3000A_CHANNEL_B
PS3000A_CHANNEL_C
PS3000A_CHANNEL_D
To set the buffer for a digital port, use one of these values:
PS3000A_DIGITAL_PORT0 = 0x80
PS3000A_DIGITAL_PORT1 = 0x81
* 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.
segmentIndex,
the number of the
mode,
see
PICO_OK
PICO_INVALID_HANDLE
PICO_INVALID_CHANNEL
PICO_RATIO_MODE_NOT_SUPPORTED
PICO_SEGMENT_OUT_OF_RANGE
PICO_DRIVER_FUNCTION
PICO_INVALID_PARAMETER