Skip to content

Commit 9c81b7a

Browse files
author
neil.hamilton
committed
Add trigger timestamping functionality to ps6000.py
1 parent bca86e4 commit 9c81b7a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

picosdk/ps6000.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,18 @@ class PS6000_PWQ_CONDITIONS (Structure):
158158
("aux", c_uint32)]
159159

160160
ps6000.PS6000_PWQ_CONDITIONS = PS6000_PWQ_CONDITIONS
161+
162+
class PS6000_TRIGGER_INFO (Structure):
163+
_pack_ = 1
164+
_fields_ = [("status", c_uint32),
165+
("segmentIndex", c_uint32),
166+
("triggerIndex", c_uint32),
167+
("triggerTime", c_uint32),
168+
("timeUnits", c_uint16),
169+
("reserved0", c_uint16),
170+
("timeStampCounter", c_uint64)]
171+
172+
ps6000.PS6000_TRIGGER_INFO = PS6000_TRIGGER_INFO
161173

162174

163175

@@ -822,3 +834,12 @@ class PS6000_PWQ_CONDITIONS (Structure):
822834
); """
823835
ps6000.make_symbol("_GetAnalogueOffset", "ps6000GetAnalogueOffset", c_uint32,
824836
[c_int16, c_int32, c_int32, c_void_p, c_void_p], doc)
837+
838+
doc = """ PICO_STATUS ps6000GetTriggerInfoBulk
839+
(
840+
int16_t handle,
841+
PS6000_TRIGGER_INFO *triggerInfo,
842+
uint32_t fromSegmentIndex,
843+
uint32_t toSegmentIndex
844+
); """
845+
ps6000.make_symbol("_GetTriggerInfoBulk", "ps6000GetTriggerInfoBulk", c_uint16, [c_int16, c_void_p, c_uint32, c_uint32], doc)

0 commit comments

Comments
 (0)