Skip to content

Commit 7a02ced

Browse files
committed
Changed 'overflow' to array for each segment
1 parent fa58d92 commit 7a02ced

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ps6000aExamples/ps6000aRapidBlockExample.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@
161161
noOfSamples = ctypes.c_uint64(nSamples)
162162
# downSampleRatio = 1
163163
# segmentIndex = 0
164-
overflow = ctypes.c_int16(0)
164+
# Creates a overflow location for each segment
165+
overflow = (ctypes.c_int16 * 10)()
165166
status["getValues"] = ps.ps6000aGetValuesBulk(chandle, 0, ctypes.byref(noOfSamples),0, 9, 1, downSampleMode, ctypes.byref(overflow))
166167
assert_pico_ok(status["getValues"])
167168

@@ -206,4 +207,4 @@
206207
status["closeunit"] = ps.ps6000aCloseUnit(chandle)
207208
assert_pico_ok(status["closeunit"])
208209

209-
print(status)
210+
print(status)

0 commit comments

Comments
 (0)