PicoScope 6403A, averaging/Increase resolution in Python

Discussion forum for the new Picoscope Linux software
Post Reply
ishoro13
Newbie
Posts: 0
Joined: Thu Feb 02, 2017 5:27 pm

PicoScope 6403A, averaging/Increase resolution in Python

Post by ishoro13 » Mon Feb 20, 2017 5:31 pm

I'm using python to set up the PicoScope 6403A.
The code I'm using just now is:

Code: Select all

(actualSamplingInterval, nSamples, maxSamples) = scope.setSamplingInterval(sampleRate, obLen)
I'm wondering, if can set-up the averaging as well?
By averaging I also mean resolution enhancement, the same as in the following link: https://www.picotech.com/library/oscill ... nhancement

I have tried the following command to do it:

Code: Select all

setResolution(resolution)
But I guess it can be used for 5000-series scopes only.

So my question is: how can I set-up the averaging in PicoScope 6403A using python. It should be possible, but I'm not even sure where to look for it.

I have done averaging in KEYSIGHT instruments using following code:

Code: Select all

scope.write(":ACQuire:TYPE AVER")
        scope.write(":ACQuire:COUNt 16")
Note library used from https://github.com/colinoflynn/pico-pyt ... icobase.py

ishoro13
Newbie
Posts: 0
Joined: Thu Feb 02, 2017 5:27 pm

Re: PicoScope 6403A, averaging/Increase resolution in Python

Post by ishoro13 » Tue Feb 21, 2017 11:17 am

To clarify my question, please read defintion of Average I'm looking for.
Average is the sum of the levels of the waveform samples divided by the
number of samples.

Hitesh
Site Admin
Site Admin
Posts: 2794
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: PicoScope 6403A, averaging/Increase resolution in Python

Post by Hitesh » Tue Feb 21, 2017 12:19 pm

Hi ishoro13,

The driver will allow you to downsample the data using aggregation, decimation and averaging (please refer to the Programmer's Guide for further information on this).

If you collect for example, 1000 samples with a downsampling ratio of 10 and mode of average, then for every 10 values in the buffer, the average will be taken and returned, resulting in 100 values.

If you are looking to collect multiple waveforms and then obtain the average, then that would be a post-capture operation in your application.

Hope this helps,
Hitesh

Technical Support Engineer

Post Reply