Test and Measurement Forum

About bufferMax and bufferMin in SetDataBuffers??????

Post general discussions on using our drivers to write your own software here

About bufferMax and bufferMin in SetDataBuffers??????

Postby pxfslcf » Thu Dec 06, 2012 5:41 am

For example, I use ps6000 In block mode, the number of samples required is 1024, I call the function ps6000SetDataBuffers, ps6000GetValues and so on, at last, i get the values, bufferMax's size is 1024(short), bufferMin's size is 1024(short), but I don't understand, the max values and the min values in the number of samples Should be the onlyone, why they have 1024???? :shock: :shock:
Posts: 0
Joined: Thu Dec 06, 2012 5:19 am

Re: About bufferMax and bufferMin in SetDataBuffers??????

Postby Martyn » Thu Dec 06, 2012 9:20 am

The min and max buffers are related to downsampling where the scope captures at a higher speed and downsamples to the required number of values you request

Code: Select all
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:

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.

Reduces every block of n values to a single value representing the average (arithmetic mean) of all the values.

Reduces every block of n values to just the first value in the block, discarding all the other values.

Reduces every block of n values to a histogram. Since the values are 8-bit numbers, there are 28 = 256 bins in each histogram. A histogram is treated as one "sample" by the data collection function, so the noOfSamples argument specifies the number of 256-bin histograms that will be written to the data buffer.
Technical Support Manager
Site Admin
Site Admin
Posts: 3099
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 0 guests