We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d51493f commit b672a99Copy full SHA for b672a99
artiq/devices/lda/driver.py
@@ -63,6 +63,9 @@ def set_attenuation(self, attenuation):
63
print("setting attenuation to {}".format(att))
64
self._attenuation = att
65
66
+ def ping(self):
67
+ return True
68
+
69
70
class Lda:
71
"""Lab Brick Digital Attenuator driver.
@@ -230,3 +233,10 @@ def set_attenuation(self, attenuation):
230
233
raise ValueError("Cannot set attenuation {} < 0".format(att))
231
234
else:
232
235
self.set(0x8d, bytes([int(round(att.amount*4))]))
236
237
238
+ try:
239
+ self.get_attenuation()
240
+ except:
241
+ return False
242
0 commit comments