Skip to content

Commit 393f3d0

Browse files
author
neil.hamilton
committed
Update ps4000RapidBlockWaveformAveragingExample.py to remove unneeded sections and add extra comments
1 parent 8fdb10a commit 393f3d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ps4000aExamples/ps4000aRapidBlockWaveformAveragingExample.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@
1515
from picosdk.functionsExhibitions import *
1616
from math import ceil
1717

18-
18+
# Scope settings
1919
noOfChannels = 1
20-
bits = 8
2120
samplingRate = 1 #Mhz
22-
sampleLength = 100000 #Samples
21+
sampleLength = 10000 #Samples
2322
numberOfSegments = 10
2423

2524
timebase = ps4000aTimebase(samplingRate)
@@ -195,6 +194,7 @@
195194
# Average waveforms
196195
averageWaveform=np.zeros((noOfChannels,nSamples))
197196

197+
# loop through each channel, each memory segment and each sample to sum together, then divides by the number of memory segment to get the mean waveform for each channel
198198
for y in range (0, noOfChannels, 1):
199199
for x in range (0, numberOfSegments,1):
200200
for z in range (0, nSamples,1):

0 commit comments

Comments
 (0)