Skip to content

Commit 2c52456

Browse files
committed
Added PS5000A_TRIGGER_INFO Structure
1 parent dd173db commit 2c52456

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

picosdk/ps5000a.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,19 @@ def _define_conditionsInfo():
182182
ps5000a.PICO_RATIO_MODE = {k[19:]: v for k, v in ps5000a.PS5000A_RATIO_MODE.items()}
183183

184184

185+
186+
class PS5000A_TRIGGER_INFO(Structure):
187+
_pack_ = 1
188+
_fields_ = [("status", c_uint32),
189+
("segmentIndex", c_uint32),
190+
("triggerIndex", c_uint32),
191+
("triggerTime", c_int64),
192+
("timeUnits", c_int16),
193+
("reserved0", c_int16),
194+
("timeStampCounter", c_uint64)]
195+
196+
ps5000a.PS5000A_TRIGGER_INFO = PS5000A_TRIGGER_INFO
197+
185198
class PS5000A_DIGITAL_CHANNEL_DIRECTIONS(Structure):
186199
_pack_ = 1
187200
_fields_ = [("channel", c_int32),
@@ -931,4 +944,4 @@ class PS5000A_CONDITION (Structure):
931944
int16_t nDirections
932945
); """
933946
ps5000a.make_symbol("_SetTriggerDigitalPortProperties", "ps5000aSetTriggerDigitalPortProperties", c_uint32,
934-
[c_int16, c_void_p, c_int16], doc)
947+
[c_int16, c_void_p, c_int16], doc)

0 commit comments

Comments
 (0)