User manual

Programming with the PicoScope 6000 Series38
Copyright © 2009-2013 Pico Technology Ltd. All rights reserved.ps6000pg.en r9
Returns
PICO_OK
PICO_INVALID_HANDLE
PICO_NO_SAMPLES_AVAILABLE
PICO_DEVICE_SAMPLING
PICO_NULL_PARAMETER
PICO_SEGMENT_OUT_OF_RANGE
PICO_INVALID_PARAMETER
PICO_TOO_MANY_SAMPLES
PICO_DATA_NOT_AVAILABLE
PICO_STARTINDEX_INVALID
PICO_INVALID_SAMPLERATIO
PICO_INVALID_CALL
PICO_NOT_RESPONDING
PICO_MEMORY
PICO_RATIO_MODE_NOT_SUPPORTED
PICO_DRIVER_FUNCTION
3.9.15.1
Downsampling modes
Various methods of data reduction, or downsampling, are possible with the
PicoScope 6000 Series oscilloscopes. The downsampling is done at high speed by
dedicated hardware inside the scope, making your application faster and more
responsive than if you had to do all the data processing in software.
You specify the downsampling mode when you call one of the data collection functions
such as ps6000GetValues. The following modes are available:
PS6000_RATIO_MODE_AGGREGATE
Reduces every block of n values to just two
values: a minimum and a maximum. The
minimum and maximum values are
returned in two separate buffers.
PS6000_RATIO_MODE_AVERAGE
Reduces every block of n values to a single
value representing the average (arithmetic
mean) of all the values.
PS6000_RATIO_MODE_DECIMATE
Reduces every block of n values to just the
first value in the block, discarding all the
other values.
PS6000_RATIO_MODE_DISTRIBUTION
Not implemented.