kasli_tester: do not attempt to synchronize AD9912 Urukul

pull/1294/head
Sebastien Bourdeauducq 2019-03-15 17:13:29 +08:00
parent adcd79ecb3
commit a01425bc9c
1 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@ import os
import select
from artiq.experiment import *
from artiq.coredevice.ad9910 import AD9910
if os.name == "nt":
import msvcrt
@ -224,7 +225,8 @@ class KasliTester(EnvExperiment):
print("Calibrating inter-device synchronization...")
for channel_name, channel_dev in self.urukuls:
if channel_dev.sync_delay_seed_eeprom is None and channel_dev.io_update_delay_eeprom is None:
if (not isinstance(channel_dev, AD9910) or
(channel_dev.sync_delay_seed_eeprom is None and channel_dev.io_update_delay_eeprom is None)):
print("{}\tno synchronization".format(channel_name))
elif channel_dev.sync_delay_seed_eeprom is not channel_dev.io_update_delay_eeprom:
print("{}\tunsupported EEPROM configuration".format(channel_name))