Skip to content

Commit d7693d1

Browse files
author
neil.hamilton
committed
Update ps5000 examples time axis generation
1 parent df61e67 commit d7693d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ps5000Examples/ps5000BlockExample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
adc2mVChBMax = adc2mV(bufferBMax, chBRange, maxADC)
143143

144144
# Create time data
145-
time = np.linspace(0, (cmaxSamples.value) * timeIntervalns.value, cmaxSamples.value)
145+
time = np.linspace(0, (cmaxSamples.value - 1) * timeIntervalns.value, cmaxSamples.value)
146146

147147
# plot data from channel A and B
148148
plt.plot(time, adc2mVChAMax[:])

0 commit comments

Comments
 (0)