User manual
PicoScope 6000 Series Programmer's Guide 29
Copyright © 2009-2013 Pico Technology Ltd. All rights reserved. ps6000pg.en r9
3.9.8
ps6000GetNoOfCaptures
PICO_STATUS ps6000GetNoOfCaptures
(
short handle,
unsigned long * nCaptures
)
This function finds out how many captures are available after ps6000RunBlock has
been called when either the collection completed or the collection of waveforms was
interrupted by calling ps6000Stop. The returned value (nCaptures) can then be
used to iterate through the number of segments using ps6000GetValues, or in a
single call to ps6000GetValuesBulk where it is used to calculate the
toSegmentIndex parameter.
Applicability
All modes
Arguments
handle: handle of the required device.
nCaptures, output: the number of available captures that has been
collected from calling ps6000RunBlock.
Returns
PICO_OK
PICO_INVALID_HANDLE
PICO_NO_SAMPLES_AVAILABLE
PICO_NULL_PARAMETER
PICO_INVALID_PARAMETER
PICO_SEGMENT_OUT_OF_RANGE
PICO_TOO_MANY_SAMPLES