forked from M-Labs/artiq
1
0
Fork 0

kasli_tester: skip Zotino test when no Zotino is present

This commit is contained in:
Sebastien Bourdeauducq 2019-01-21 18:11:41 +08:00
parent 715dac5798
commit 9bbb67c340
1 changed files with 9 additions and 8 deletions

View File

@ -280,14 +280,15 @@ class KasliTester(EnvExperiment):
zotino.load()
def test_zotinos(self):
print("*** Testing Zotino DACs.")
print("Voltages:")
for card_n, (card_name, card_dev) in enumerate(self.zotinos):
voltages = [2*card_n + (-1)**i*0.1*(i//2+1) for i in range(32)]
print(card_name, " ".join(["{:.1f}".format(x) for x in voltages]))
self.set_zotino_voltages(card_dev, voltages)
print("Press ENTER when done.")
input()
if self.zotinos:
print("*** Testing Zotino DACs.")
print("Voltages:")
for card_n, (card_name, card_dev) in enumerate(self.zotinos):
voltages = [2*card_n + (-1)**i*0.1*(i//2+1) for i in range(32)]
print(card_name, " ".join(["{:.1f}".format(x) for x in voltages]))
self.set_zotino_voltages(card_dev, voltages)
print("Press ENTER when done.")
input()
@kernel
def grabber_capture(self, card_dev, rois):