Skip to content

Commit 78e9032

Browse files
author
neil.hamilton
committed
Add advanced trigger structures to ps6000.py
1 parent 38c5a94 commit 78e9032

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

picosdk/ps6000.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,42 @@ def __init__(self):
7676
"PS6000_MAX_TIME_UNITS",
7777
])
7878

79+
class PS6000_TRIGGER_CONDITIONS (Structure):
80+
_pack_ = 1
81+
_fields_ = [("channelA", c_uint32),
82+
("channelB", c_uint32),
83+
("channelC", c_uint32),
84+
("channelD", c_uint32),
85+
("external", c_uint32),
86+
("aux", c_uint32),
87+
("pulseWidthQualifier", c_uint32)]
88+
89+
ps6000.PS6000_TRIGGER_CONDITIONS = PS6000_TRIGGER_CONDITIONS
90+
91+
class PS6000_TRIGGER_CHANNEL_PROPERTIES (Structure):
92+
_pack_ = 1
93+
_fields_ = [("thresholdUpper", c_int16),
94+
("hysteresisUpper", c_uint16),
95+
("thresholdLower", c_int16),
96+
("hysteresisLower", c_uint16),
97+
("channel", c_uint32),
98+
("thresholdMode", c_uint32)]
99+
100+
ps6000.PS6000_TRIGGER_CHANNEL_PROPERTIES = PS6000_TRIGGER_CHANNEL_PROPERTIES
101+
102+
class PS6000_PWQ_CONDITIONS (Structure):
103+
_pack_ = 1
104+
_fields_ = [("channelA", c_uint32),
105+
("channelB", c_uint32),
106+
("channelC", c_uint32),
107+
("channelD", c_uint32),
108+
("external", c_uint32),
109+
("aux", c_uint32)]
110+
111+
ps6000.PS6000_PWQ_CONDITIONS = PS6000_PWQ_CONDITIONS
112+
113+
114+
79115
# some ps6000 scopes have 2GS of memory.
80116
ps6000.MAX_MEMORY = 2**31
81117

0 commit comments

Comments
 (0)