@@ -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.
80116ps6000 .MAX_MEMORY = 2 ** 31
81117
0 commit comments