Math channel (average function) in MATLAB

Post your MATLAB discussions here
Post Reply
elevenert
Newbie
Posts: 0
Joined: Wed Apr 25, 2018 11:21 am

Math channel (average function) in MATLAB

Post by elevenert »

Hi,

I was wondering if you could explain how exactly the built-in function "average" works, i.e. the window size, time length etc.. Also, is it possible to implement it in MATLAB? I've tried but it didn't seem to work. I'm using Picoscope 5444D.

Here are some details about my Picoscope 6 settings and MATLAB commands.

Pico 6 :
Two channels (A=signal, B=trigger signal), 15 bits
Bandwidth limit=20MHz
Auto trigger on channel B (simple edge, falling edge, threshold=0V)
Math channel=average(A)
Sample interval=504ns, averaging time ~ 4s

MATLAB:

Code: Select all

[status.SetBandwidthFilter] = invoke(ps5000aDeviceObj, 'ps5000aSetBandwidthFilter', 0, 1);
 [status.setSimpleTrigger] = invoke(triggerGroupObj, 'setSimpleTrigger', 1, 0, 3);
 avg_A = movmean(chA,256,'Endpoints','discard');
 
numSamples=26218487
timeIntervalNanoseconds=504ns


Thanks in advance.

NeilH
PICO STAFF
PICO STAFF
Posts: 266
Joined: Tue Jul 18, 2017 8:28 am

Re: Math channel (average function) in MATLAB

Post by NeilH »

Hi

The average function in the maths channels in PicoScope 6 averages multiple waveform captures together rather than doing any kind of averaging within a single waveform capture.

Neil
Neil
Technical Support Engineer

Post Reply