mirror of https://github.com/m-labs/artiq.git
sinara_tester: fix outdated API
This commit is contained in:
parent
cea0a15e1e
commit
61349f9685
|
@ -115,11 +115,10 @@ class SinaraTester(EnvExperiment):
|
||||||
del self.ttl_outs[io_update_device]
|
del self.ttl_outs[io_update_device]
|
||||||
# check for suservos and delete respective urukuls
|
# check for suservos and delete respective urukuls
|
||||||
elif (module, cls) == ("artiq.coredevice.suservo", "SUServo"):
|
elif (module, cls) == ("artiq.coredevice.suservo", "SUServo"):
|
||||||
del self.urukuls[desc["arguments"]["dds0_device"]]
|
for cpld in desc["arguments"]["cpld_devices"]:
|
||||||
del self.urukul_cplds[desc["arguments"]["cpld0_device"]]
|
del self.urukul_cplds[cpld]
|
||||||
if "dds1_device" in desc["arguments"]:
|
for dds in desc["arguments"]["dds_devices"]:
|
||||||
del self.urukuls[desc["arguments"]["dds1_device"]]
|
del self.urukuls[dds]
|
||||||
del self.urukul_cplds[desc["arguments"]["cpld1_device"]]
|
|
||||||
elif (module, cls) == ("artiq.coredevice.sampler", "Sampler"):
|
elif (module, cls) == ("artiq.coredevice.sampler", "Sampler"):
|
||||||
cnv_device = desc["arguments"]["cnv_device"]
|
cnv_device = desc["arguments"]["cnv_device"]
|
||||||
del self.ttl_outs[cnv_device]
|
del self.ttl_outs[cnv_device]
|
||||||
|
@ -597,8 +596,8 @@ class SinaraTester(EnvExperiment):
|
||||||
delay(10*us)
|
delay(10*us)
|
||||||
# DDS attenuator 10dB
|
# DDS attenuator 10dB
|
||||||
for i in range(4):
|
for i in range(4):
|
||||||
channel.cpld0.set_att(i, 10.)
|
for cpld in channel.cplds:
|
||||||
channel.cpld1.set_att(i, 10.)
|
cpld.set_att(i, 10.)
|
||||||
delay(1*us)
|
delay(1*us)
|
||||||
# Servo is done and disabled
|
# Servo is done and disabled
|
||||||
assert channel.get_status() & 0xff == 2
|
assert channel.get_status() & 0xff == 2
|
||||||
|
|
Loading…
Reference in New Issue