Prog ramming the 3000A Series oscilloscopes28
Copyright © 2011-2013 Pico Technology Limited. All rights reserved.ps3000abpg.en r9
2.12.5
ps3000aDataReady (callback)
typedef void (CALLBACK *ps3000aDataReady)
(
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 ps3000aGetValuesAsync, and the driver calls your
function back when the data is ready.
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
ps3000aGetValuesAsync. 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.