Skip to content

Commit d87d7ac

Browse files
author
neil.hamilton
committed
Add additional enums for advanced triggers in ps6000.py
1 parent ebbdaaf commit d87d7ac

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

picosdk/ps6000.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,18 @@ def __init__(self):
9797
"PS6000_NEGATIVE_RUNT",
9898
])
9999

100+
ps6000.PS6000_THRESHOLD_MODE = make_enum([
101+
"PS6000_LEVEL",
102+
"PS6000_WINDOW",
103+
])
104+
105+
ps6000.PS6000_PUlSE_WIDTH_TYPE = make_enum([
106+
"PS6000_PW_TYPE_NONE",
107+
"PS6000_PW_TYPE_LESS_THAN",
108+
"PS6000_PW_TYPE_GREATER_THAN",
109+
"PS6000_PW_TYPE_IN_RANGE",
110+
"PS6000_PW_TYPE_OUT_OF_RANGE"
111+
)]
100112

101113
class PS6000_TRIGGER_CONDITIONS (Structure):
102114
_pack_ = 1

0 commit comments

Comments
 (0)