User manual

Programming with the PicoScope 6000 Series24
Copyright © 2009-2013 Pico Technology Ltd. All rights reserved.ps6000pg.en r9
3.9.3
ps6000DataReady
typedef void (CALLBACK *ps6000DataReady)
(
short handle,
PICO_STATUS status,
unsigned long noOfSamples,
short overflow,
void * pParameter
)
This is a callback function that you write to collect data from the driver. You supply a
pointer to the function when you call ps6000GetValuesAsync, and the driver calls your
function back when the data is ready.
Applicability
All modes
Arguments
handle, the handle of the device returning the samples.
status, a PICO_STATUS code returned by the driver.
noOfSamples, the number of samples collected.
overflow, a set of flags that indicates whether an overvoltage has
occurred and on which channels. It is a bit field with bit 0
representing Channel A.
pParameter, a void pointer passed from ps6000GetValuesAsync.
The callback function can write to this location to send any data,
such as a status flag, back to the application. The data type is
defined by the application programmer.
Returns
nothing