Skip to content

Commit 74385f4

Browse files
author
neil.hamilton
committed
Add 2 channel streaming functions
1 parent d8e3044 commit 74385f4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

ps6000aExamples/ps6000aStreamingModeExample.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
bandwidth = enums.PICO_BANDWIDTH_LIMITER["PICO_BW_FULL"]
3535
status["setChannelA"] = ps.ps6000aSetChannelOn(chandle, channelA, coupling, channelRange, 0, bandwidth)
3636
assert_pico_ok(status["setChannelA"])
37-
channelA = enums.PICO_CHANNEL["PICO_CHANNEL_B"]
37+
channelB = enums.PICO_CHANNEL["PICO_CHANNEL_B"]
3838
status["setChannelB"] = ps.ps6000aSetChannelOn(chandle, channelB, coupling, channelRange, 0, bandwidth)
3939
assert_pico_ok(status["setChannelB"])
4040

@@ -66,7 +66,6 @@
6666
bufferA = ((ctypes.c_int16 * nSamples) * 10)()
6767
bufferB = ((ctypes.c_int16 * nSamples) * 10)()
6868

69-
print(bufferA)
7069
# Set data buffers
7170
# handle = chandle
7271
# channel = channelA
@@ -139,12 +138,13 @@
139138
assert_pico_ok(status["getAdcLimits"])
140139

141140
# convert ADC counts data to mV
142-
bufferAmV = ((ctypes.c_int16 * nSamples) * 10)()
143-
for j in range(0, 9):
144-
A = bufferA[j]
145-
bufferAmV[j] = adc2mV(A, channelRange, maxADC)
146-
B = bufferB[j]
147-
bufferBmV[j] = adc2mV(B, channelRange, maxADC)
141+
# bufferAmV = ((ctypes.c_int16 * nSamples) * 10)()
142+
# bufferBmV = ((ctypes.c_int16 * nSamples) * 10)()
143+
# for j in range(0, 9):
144+
# A = bufferA[j]
145+
# bufferAmV[j] = adc2mV(A, channelRange, maxADC)
146+
# B = bufferB[j]
147+
# bufferBmV[j] = adc2mV(B, channelRange, maxADC)
148148

149149
# Close the scope
150150
status["closeunit"] = ps.ps6000aCloseUnit(chandle)

0 commit comments

Comments
 (0)