Skip to content

Commit 318852c

Browse files
What to do if you have a 2 channel scope.
1 parent dd6fc26 commit 318852c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/fixate/drivers/dso/agilent_mso_x.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# KEYSIGHT TECHNOLOGIES,DSO-X 1102G,CN57096441,01.20.2019061038
1010
# AGILENT TECHNOLOGIES,MSO-X 3014A,MY51360314,02.43.2018020635
1111
class MSO_X_3000(DSO):
12-
# Regex needs work to detect only the 4 channel scopes we have here:
12+
# Regex needs work to detect only the 4 channel scopes we have:
1313
REGEX_ID = "(KEYSIGHT|AGILENT) TECHNOLOGIES,[DM]SO-?X"
1414
INSTR_TYPE = "VISA"
1515
retrys_on_timeout = 1
@@ -26,6 +26,11 @@ def __init__(self, instrument):
2626
self.instrument.query_delay = 0.2
2727
self.instrument.timeout = 1000
2828

29+
# If, for example this does not have 4 channels, we can do:
30+
# We would actually call some function like not_availalbe() that would raise a better error
31+
self.ch3 = lambda: 1 / 0
32+
self.ch4 = lambda: 1 / 0
33+
2934
def single(self) -> None:
3035
"""
3136
Specific implementation of the single trigger setup for Agilent MSO-X

0 commit comments

Comments
 (0)