Skip to content

Commit d961dbe

Browse files
author
neil.hamilton
committed
Complete advanced trigger implementation in ps5000aExamples/ps5000aBlockAdvancedTriggerExample.py
1 parent 7e2111e commit d961dbe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

picosdk/ps5000a.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class PS5000A_CONDITION (Structure):
214214
_fields_ = [("source", c_int32),
215215
("condition", c_int16)]
216216

217-
ps5000a.PS5000A_CONDITION PS5000A_CONDITION
217+
ps5000a.PS5000A_CONDITION = PS5000A_CONDITION
218218

219219

220220

@@ -500,11 +500,11 @@ class PS5000A_CONDITION (Structure):
500500
ps5000a.make_symbol("_SetTriggerChannelDirections", "ps5000aSetTriggerChannelDirections", c_uint32,
501501
[c_int16, c_int32, c_int32, c_int32, c_int32, c_int32, c_int32], doc)
502502

503-
dpc = """ PICO_STATUS ps5000aSetTriggerChannelDirectionsV2
503+
doc = """ PICO_STATUS ps5000aSetTriggerChannelDirectionsV2
504504
(
505505
int16_t handle,
506506
PS5000A_DIRECTION *directions
507-
uint16_t nDirections
507+
uint16_t nDirections
508508
); """
509509
ps5000a.make_symbol("_SetTriggerChannelDirectionsV2", "ps5000aSetTriggerChannelDirectionsV2", c_uint32,
510510
[c_int16, c_void_p, c_uint16], doc)

ps5000aExamples/ps5000aBlockAdvancedTriggerExample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
ps.PS5000A_THRESHOLD_DIRECTION["PS5000A_RISING"],
8787
ps.PS5000A_THRESHOLD_MODE["PS5000A_LEVEL"])
8888

89-
status["setTriggerChannelDirections"] = ps5000aSetTriggerChannelDirectionsV2(chandle, ctypes.byref(triggerDirections), 1)
89+
status["setTriggerChannelDirections"] = ps.ps5000aSetTriggerChannelDirectionsV2(chandle, ctypes.byref(triggerDirections), 1)
9090

9191

9292
# Set number of pre and post trigger samples to be collected

0 commit comments

Comments
 (0)