Installation guide

API functions86
Copyright © 2008-2014 Pico Technology Ltd. All rights reserved.ps4000apg.en r1
4.58
ps4000aStreamingReady
typedef void (CALLBACK *ps4000aStreamingReady)
(
int16_t handle,
int32_t noOfSamples,
uint32_t startIndex,
int16_t overflow,
uint32_t triggerAt,
int16_t triggered,
int16_t autoStop,
void * pParameter
)
This callback function is part of your application. You register it with the PicoScope
4000 Series driver using ps4000aGetStreamingLatestValues, and the driver calls
it back when streaming-mode data is ready. You can then download the data using
the ps4000aGetValuesAsync function.
Applicability
Streaming mode only
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
ps4000aSetDataBuffer.
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
ps4000aRunStreaming.
pParameter, a void pointer passed from
ps4000aGetStreamingLatestValues. The callback function can
write to this location to send any data, such as a status flag, back to
the application.
Returns
nothing