forked from M-Labs/artiq
1
0
Fork 0

artiq_sinara_tester: fix mirny/almazny freq type

This commit is contained in:
mwojcik 2022-04-26 12:52:58 +08:00
parent 86142db56b
commit 8c825505fd
1 changed files with 2 additions and 2 deletions

View File

@ -408,7 +408,7 @@ class SinaraTester(EnvExperiment):
print("Testing attenuators. Frequencies:") print("Testing attenuators. Frequencies:")
for card_n, channels in enumerate(chunker(self.mirnies, 4)): for card_n, channels in enumerate(chunker(self.mirnies, 4)):
for channel_n, (channel_name, channel_dev) in enumerate(channels): for channel_n, (channel_name, channel_dev) in enumerate(channels):
frequency = 2000 + card_n * 250 + channel_n * 50 frequency = 2000. + card_n * 250 + channel_n * 50
print("{}\t{}MHz".format(channel_name, frequency*2)) print("{}\t{}MHz".format(channel_name, frequency*2))
self.setup_mirny(channel_dev, frequency) self.setup_mirny(channel_dev, frequency)
print("{} info: {}".format(channel_name, channel_dev.info())) print("{} info: {}".format(channel_name, channel_dev.info()))
@ -450,7 +450,7 @@ class SinaraTester(EnvExperiment):
print("Frequencies:") print("Frequencies:")
for card_n, channels in enumerate(chunker(self.mirnies, 4)): for card_n, channels in enumerate(chunker(self.mirnies, 4)):
for channel_n, (channel_name, channel_dev) in enumerate(channels): for channel_n, (channel_name, channel_dev) in enumerate(channels):
frequency = 1000*(card_n + 1) + channel_n * 100 frequency = 1000.*(card_n + 1) + channel_n * 100
print("{}\t{}MHz".format(channel_name, frequency)) print("{}\t{}MHz".format(channel_name, frequency))
self.setup_mirny(channel_dev, frequency) self.setup_mirny(channel_dev, frequency)
print("{} info: {}".format(channel_name, channel_dev.info())) print("{} info: {}".format(channel_name, channel_dev.info()))