forked from M-Labs/artiq
kasli_tester: skip Zotino test when no Zotino is present
This commit is contained in:
parent
bff8c8cb05
commit
30b2f54baa
|
@ -280,14 +280,15 @@ class KasliTester(EnvExperiment):
|
||||||
zotino.load()
|
zotino.load()
|
||||||
|
|
||||||
def test_zotinos(self):
|
def test_zotinos(self):
|
||||||
print("*** Testing Zotino DACs.")
|
if self.zotinos:
|
||||||
print("Voltages:")
|
print("*** Testing Zotino DACs.")
|
||||||
for card_n, (card_name, card_dev) in enumerate(self.zotinos):
|
print("Voltages:")
|
||||||
voltages = [2*card_n + (-1)**i*0.1*(i//2+1) for i in range(32)]
|
for card_n, (card_name, card_dev) in enumerate(self.zotinos):
|
||||||
print(card_name, " ".join(["{:.1f}".format(x) for x in voltages]))
|
voltages = [2*card_n + (-1)**i*0.1*(i//2+1) for i in range(32)]
|
||||||
self.set_zotino_voltages(card_dev, voltages)
|
print(card_name, " ".join(["{:.1f}".format(x) for x in voltages]))
|
||||||
print("Press ENTER when done.")
|
self.set_zotino_voltages(card_dev, voltages)
|
||||||
input()
|
print("Press ENTER when done.")
|
||||||
|
input()
|
||||||
|
|
||||||
@kernel
|
@kernel
|
||||||
def grabber_capture(self, card_dev, rois):
|
def grabber_capture(self, card_dev, rois):
|
||||||
|
|
Loading…
Reference in New Issue