
Prog ramming the 3000A Series oscilloscopes
104
Copyright © 2011-2013 Pico Technology Limited. All rights reserved.
ps3000abpg.en r9
2.12.61 ps3000aStreamingReady (callback)
typedef void (CALLBACK *ps3000aStreamingReady)
(
short handle,
long noOfSamples,
unsigned long startIndex,
short overflow,
unsigned long triggerAt,
short triggered,
short autoStop,
void * pParameter
)
This
function is part of your application. You register it with the driver using
ps3000aGetStreamingLatestValues,
and the driver calls it back when streaming-mode
data is ready. You can then download the data using the
function.
Applicability
Arguments
handle,
the handle of the device returning the samples.
noOfSamples,
the number of samples to collect.
startIndex,
an index to the first valid sample in the buffer. This is
the buffer that was previously passed to
.
overflow,
returns a set of flags that indicate whether an
overvoltage has occurred on any of the channels. It is a bit pattern
with bit 0 denoting Channel A.
triggerAt,
an index to the buffer indicating the location of the
trigger point. This parameter is valid only when
triggered
is non-
zero.
triggered,
a flag indicating whether a trigger occurred. If non-
zero, a trigger occurred at the location indicated by
triggerAt.
autoStop,
the flag that was set in the call to
* pParameter,
a void pointer passed from
ps3000aGetStreamingLatestValues
. The callback function can write to
this location to send any data, such as a status flag, back to the
application.
Returns
nothing