forked from M-Labs/artiq
1
0
Fork 0

artiq_sinara_tester: Refactor Almazny to AlmaznyLegacy

The class was renamed in 45cd438fb8.

Signed-off-by: David Mak <csdavidmak@ust.hk>
This commit is contained in:
David Mak 2023-10-30 15:08:29 +08:00 committed by Sébastien Bourdeauducq
parent 92391c4763
commit d0a3ba2bc0
1 changed files with 6 additions and 5 deletions

11
artiq/frontend/artiq_sinara_tester.py Executable file → Normal file
View File

@ -13,7 +13,8 @@ from artiq.coredevice.core import Core
from artiq.coredevice.ttl import TTLOut, TTLInOut from artiq.coredevice.ttl import TTLOut, TTLInOut
from artiq.coredevice.urukul import CPLD as UrukulCPLD from artiq.coredevice.urukul import CPLD as UrukulCPLD
from artiq.coredevice.ad9910 import AD9910, SyncDataEeprom from artiq.coredevice.ad9910 import AD9910, SyncDataEeprom
from artiq.coredevice.mirny import Mirny, Almazny from artiq.coredevice.mirny import Mirny
from artiq.coredevice.almazny import AlmaznyLegacy
from artiq.coredevice.adf5356 import ADF5356 from artiq.coredevice.adf5356 import ADF5356
from artiq.coredevice.sampler import Sampler from artiq.coredevice.sampler import Sampler
from artiq.coredevice.zotino import Zotino from artiq.coredevice.zotino import Zotino
@ -376,23 +377,23 @@ class SinaraTester(EnvExperiment):
channel.pulse(100.*ms) channel.pulse(100.*ms)
self.core.delay(100.*ms) self.core.delay(100.*ms)
@kernel @kernel
def init_almazny(self, almazny: Almazny): def init_almazny(self, almazny: AlmaznyLegacy):
self.core.break_realtime() self.core.break_realtime()
almazny.init() almazny.init()
almazny.output_toggle(True) almazny.output_toggle(True)
@kernel @kernel
def almazny_set_attenuators_mu(self, almazny: Almazny, ch: int32, atts: int32): def almazny_set_attenuators_mu(self, almazny: AlmaznyLegacy, ch: int32, atts: int32):
self.core.break_realtime() self.core.break_realtime()
almazny.set_att_mu(ch, atts) almazny.set_att_mu(ch, atts)
@kernel @kernel
def almazny_set_attenuators(self, almazny: Almazny, ch: int32, atts: float): def almazny_set_attenuators(self, almazny: AlmaznyLegacy, ch: int32, atts: float):
self.core.break_realtime() self.core.break_realtime()
almazny.set_att(ch, atts) almazny.set_att(ch, atts)
@kernel @kernel
def almazny_toggle_output(self, almazny: Almazny, rf_on: bool): def almazny_toggle_output(self, almazny: AlmaznyLegacy, rf_on: bool):
self.core.break_realtime() self.core.break_realtime()
almazny.output_toggle(rf_on) almazny.output_toggle(rf_on)