User manual

Programming with the PicoScope 6000 Series28
Copyright © 2009-2013 Pico Technology Ltd. All rights reserved.ps6000pg.en r9
3.9.7
ps6000GetMaxDownSampleRatio
PICO_STATUS ps6000GetMaxDownSampleRatio
(
short handle,
unsigned long noOfUnaggregatedSamples,
unsigned long * maxDownSampleRatio,
PS6000_RATIO_MODE downSampleRatioMode,
unsigned long segmentIndex
)
This function returns the maximum downsampling ratio that can be used for a given
number of samples in a given downsampling mode.
Applicability
All modes
Arguments
handle, the handle of the required device
noOfUnaggregatedSamples, the number of unprocessed samples
to be downsampled
maxDownSampleRatio: the maximum possible downsampling ratio
downSampleRatioMode: the downsampling mode. See
ps6000GetValues.
segmentIndex, the memory segment where the data is stored
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