Installation guide
API functions60
Copyright © 2008-2014 Pico Technology Ltd. All rights reserved.ps4000apg.en r1
4.39
ps4000aSetDataBuffer
PICO_STATUS ps4000aSetDataBuffer
(
int16_t handle,
PS4000A_CHANNEL channel,
int16_t * buffer,
int32_t bufferLth,
uint32_t segmentIndex,
PS4000A_RATIO_MODE mode
)
This function registers your data buffer, for non-downsampled data, with the
PicoScope 4000 driver. You need to allocate the buffer before calling this function.
Applicability
All modes.
For downsampled data, use ps4000aSetDataBuffers instead.
Arguments
handle, the handle of the required device
channel, the channel for which you want to set the buffers. Use
one of these values:
PS4000A_CHANNEL_A ... PS4000A_CHANNEL_H
* buffer, a buffer to receive the data values
bufferLth, the size of the buffer array
segmentIndex, the serial number of the segment to be retrieved
mode, the type of data reduction to use. See Downsampling for
options.
Returns
PICO_OK
PICO_INVALID_HANDLE
PICO_INVALID_CHANNEL