Skip to content

Commit 776fac8

Browse files
author
neil.hamilton
committed
Add emuns to ps3000a.py
1 parent e9c8f5d commit 776fac8

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

picosdk/ps3000a.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,23 @@ def __init__(self):
6363
for k, v in ps3000a.PS3000A_RANGE.items() if k != "PS3000A_MAX_RANGES"
6464
}
6565

66+
ps3000a.PS3000A_RATIO_MODE = {
67+
'PS3000A_RATIO_MODE_NONE': 0,
68+
'PS3000A_RATIO_MODE_AGGREGATE': 1,
69+
'PS3000A_RATIO_MODE_DECIMATE': 2,
70+
'PS3000A_RATIO_MODE_AVERAGE': 4,
71+
}
72+
73+
ps3000a.PS3000A_TIME_UNITS = make_enum([
74+
'PS3000A_FS',
75+
'PS3000A_PS',
76+
'PS3000A_NS',
77+
'PS3000A_US',
78+
'PS3000A_MS',
79+
'PS3000A_S',
80+
'PS3000A_MAX_TIME_UNITS',
81+
])
82+
6683
ps3000a.PS3000A_DIGITAL_CHANNEL = make_enum([
6784
"PS3000A_DIGITAL_CHANNEL_0",
6885
"PS3000A_DIGITAL_CHANNEL_1",

0 commit comments

Comments
 (0)