Skip to content

Commit c6bcfb9

Browse files
author
neil.hamilton
committed
Add channel A setup to ps6000aBlockExample.py
1 parent 62a9ae6 commit c6bcfb9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ps6000aExamples/ps6000aBlockExample.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import ctypes
99
import numpy as np
1010
from picosdk.ps6000a import ps6000a as ps
11+
#from picosdk.PicoDeviceEnums import PicoDeviceEnums as enums
1112
import matplotlib.pyplot as plt
1213
from picosdk.functions import adc2mV, assert_pico_ok
1314

@@ -20,6 +21,16 @@
2021
status["openunit"] = ps.ps6000aOpenUnit(ctypes.byref(chandle), None, 0)
2122
assert_pico_ok(status["openunit"])
2223

24+
# Set channel A on
25+
# handle = chandle
26+
channel = 0 #enums.PICO_CHANNEL["PICO_CHANNEL_A"]
27+
coupling = 0 #enums.PICO_COUPLING["PICO_DC"]
28+
range = 7
29+
# analogueOffset = 0 V
30+
bandwidth = 0 #enums.PICO_CHANNEL["PICO_BW_FULL"]
31+
status["setChannelA"] = ps.ps6000aSetChannelOn(chandle, channel, coupling, range, 0, bandwidth)
32+
assert_pico_ok(status["setChannelA"])
33+
2334
# Close the scope
2435
status["closeunit"] = ps.ps6000aCloseUnit(chandle)
2536
assert_pico_ok(status["closeunit"])

0 commit comments

Comments
 (0)