From b5d9062ba90bba13c2341d495be1a675c80a3107 Mon Sep 17 00:00:00 2001 From: Egor Savkin Date: Fri, 31 Mar 2023 11:18:23 +0800 Subject: [PATCH] Fix AD9914 channel map Signed-off-by: Egor Savkin --- artiq/coredevice/ad9914.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/artiq/coredevice/ad9914.py b/artiq/coredevice/ad9914.py index 9466b90d8..2fde49f2c 100644 --- a/artiq/coredevice/ad9914.py +++ b/artiq/coredevice/ad9914.py @@ -81,8 +81,11 @@ class AD9914: self.exit_x_duration_mu = 3 * self.write_duration_mu @staticmethod - def get_rtio_channels(bus_channel, **kwargs): - return [(bus_channel, None)] + def get_rtio_channels(bus_channel, channel, **kwargs): + # return only first entry, as there are several devices with the same RTIO channel + if channel == 0: + return [(bus_channel, None)] + return [] @kernel def write(self, addr, data):