User Manual
PicoScope 4000 Series Programmer's Guide 61
Copyright © 2008-2011 Pico Technology Ltd. All rights reserved. ps4000pg.en
4.10.39
ps4000SetDataBuffer
PICO_STATUS ps4000SetDataBuffer
(
short handle,
PS4000_CHANNEL channel,
short * buffer,
long bufferLth
)
This function registers your data buffer, for non-aggregated data, with the PicoScope
4000 driver. You need to allocate the buffer before calling this function.
Applicability
All modes.
For aggregated data, use ps4000SetDataBuffers 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: -
PS4000_CHANNEL_A
PS4000_CHANNEL_B
PS4000_CHANNEL_C (4-channel scopes only)
PS4000_CHANNEL_D (4-channel scopes only)
buffer, a buffer to receive the data values
bufferLth, the size of the buffer array
Returns
PICO_OK
PICO_INVALID_HANDLE
PICO_INVALID_CHANNEL