From e9b78b62db4dc1e2bbce778dc3cecc891ac1cfaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Tue, 6 Aug 2019 17:37:46 +0200 Subject: [PATCH] kasli_tester/zotino: always alternate voltage sign Before the voltages on a second Zotino would start 2.1, 1.9, 2.2, 1.8 ..., 3.6, 0.4 and overlap with the voltages on the first. Now the voltages are 2.1, -2.1, 2.2, -2.2, ..., 3.6, -3.6 which allows quick identification of card/channel and easy prediction when deploying. --- artiq/examples/kasli/repository/kasli_tester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/examples/kasli/repository/kasli_tester.py b/artiq/examples/kasli/repository/kasli_tester.py index 704db6b80..8985aa345 100644 --- a/artiq/examples/kasli/repository/kasli_tester.py +++ b/artiq/examples/kasli/repository/kasli_tester.py @@ -326,7 +326,7 @@ class KasliTester(EnvExperiment): 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)] + voltages = [(-1)**i*(2.*card_n + .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.")