diff --git a/adi/ad4110.py b/adi/ad4110.py index b7522661f..48b025214 100644 --- a/adi/ad4110.py +++ b/adi/ad4110.py @@ -45,6 +45,8 @@ def __init__(self, uri="", device_name=""): if not self._rxadc: raise Exception("Error in selecting matching device") + self._rx_channel_names = [] + self.channel = [] for ch in self._ctrl.channels: name = ch._id self._rx_channel_names.append(name) diff --git a/adi/ad4130.py b/adi/ad4130.py index f53a3a6c4..30ae7ec2f 100644 --- a/adi/ad4130.py +++ b/adi/ad4130.py @@ -40,6 +40,8 @@ def __init__(self, uri="", device_name=""): self._rxadc = device break + self._rx_channel_names = [] + self.channel = [] for ch in self._ctrl.channels: name = ch._id self._rx_channel_names.append(name) diff --git a/adi/ad469x.py b/adi/ad469x.py index 8e629e7cf..78e6a9b9e 100644 --- a/adi/ad469x.py +++ b/adi/ad469x.py @@ -51,6 +51,7 @@ def __init__(self, uri="", device_name=""): if not self._rxadc: raise Exception("Error in selecting matching device") + self._rx_channel_names = [] for ch in self._ctrl.channels: name = ch._id self._rx_channel_names.append(name) diff --git a/adi/ad4858.py b/adi/ad4858.py index 30d0ac3bf..787453129 100644 --- a/adi/ad4858.py +++ b/adi/ad4858.py @@ -45,6 +45,8 @@ def __init__(self, uri="", device_name=""): if not self._rxadc: raise Exception("Error in selecting matching device") + self._rx_channel_names = [] + self.channel = [] for ch in self._ctrl.channels: name = ch._id self._rx_channel_names.append(name) diff --git a/adi/ad5686.py b/adi/ad5686.py index 802c39e4d..e0f23b3be 100644 --- a/adi/ad5686.py +++ b/adi/ad5686.py @@ -61,6 +61,7 @@ def __init__(self, uri="", device_index=0): else: index += 1 + self.channel = [] for ch in self._ctrl.channels: name = ch.id self.channel.append(self._channel(self._ctrl, name)) diff --git a/adi/ad5754r.py b/adi/ad5754r.py index 6fc90f7e7..819e4327d 100644 --- a/adi/ad5754r.py +++ b/adi/ad5754r.py @@ -47,6 +47,8 @@ def __init__(self, uri="", device_name=""): raise Exception("Error in selecting matching device") self.output_bits = [] + self.channel = [] + self._tx_channel_names = [] for ch in self._ctrl.channels: name = ch.id self.output_bits.append(ch.data_format.bits) diff --git a/adi/ad578x.py b/adi/ad578x.py index d9fbc4bc4..8ab640756 100644 --- a/adi/ad578x.py +++ b/adi/ad578x.py @@ -54,6 +54,8 @@ def __init__(self, uri="", device_name=""): raise Exception("Error in selecting matching device") self.output_bits = [] + self.channel = [] + self._tx_channel_names = [] for ch in self._ctrl.channels: name = ch.id self.output_bits.append(ch.data_format.bits) diff --git a/adi/ad5940.py b/adi/ad5940.py index 2c54d2f57..74e0408b8 100644 --- a/adi/ad5940.py +++ b/adi/ad5940.py @@ -33,6 +33,7 @@ def __init__(self, uri=""): break # dynamically get channels _channels = [] + self._rx_channel_names = [] for ch in self._ctrl.channels: self._rx_channel_names.append(ch.id) if ch.name == "bia": diff --git a/adi/ad717x.py b/adi/ad717x.py index ea59f2f4f..067cf5c3d 100644 --- a/adi/ad717x.py +++ b/adi/ad717x.py @@ -59,6 +59,8 @@ def __init__(self, uri="", device_name=""): if not self._rxadc: raise Exception("Error in selecting matching device") + self._rx_channel_names = [] + self.channel = [] for ch in self._ctrl.channels: name = ch._id self._rx_channel_names.append(name) diff --git a/adi/ad719x.py b/adi/ad719x.py index d3d27d095..c8ae4a9f6 100644 --- a/adi/ad719x.py +++ b/adi/ad719x.py @@ -46,6 +46,8 @@ def __init__(self, uri="", device_name=""): if not self._rxadc: raise Exception("Error in selecting matching device") + self._rx_channel_names = [] + self.channel = [] for ch in self._ctrl.channels: name = ch._id self._rx_channel_names.append(name) diff --git a/adi/ad7606.py b/adi/ad7606.py index 0d13099b7..61f593fa2 100644 --- a/adi/ad7606.py +++ b/adi/ad7606.py @@ -48,6 +48,8 @@ def __init__(self, uri="", device_name=""): self._rxadc = device break + self._rx_channel_names = [] + self.channel = [] for ch in self._ctrl.channels: name = ch._id self._rx_channel_names.append(name) diff --git a/adi/ad7689.py b/adi/ad7689.py index 1d139e5fd..ccfbfb384 100644 --- a/adi/ad7689.py +++ b/adi/ad7689.py @@ -44,6 +44,8 @@ def __init__(self, uri="", device_name=""): self._rxadc = device break + self._rx_channel_names = [] + self.channel = [] for ch in self._ctrl.channels: name = ch._id self._rx_channel_names.append(name) diff --git a/adi/ad7746.py b/adi/ad7746.py index af228b328..1e5ef2de7 100644 --- a/adi/ad7746.py +++ b/adi/ad7746.py @@ -41,6 +41,7 @@ def __init__(self, uri="", device_name=""): break # dynamically get channels _channels = [] + self._rx_channel_names = [] for ch in self._ctrl.channels: self._rx_channel_names.append(ch.id) if "capacitance" in ch.id: diff --git a/adi/ad7768.py b/adi/ad7768.py index ef3490ed9..df251448c 100644 --- a/adi/ad7768.py +++ b/adi/ad7768.py @@ -35,6 +35,7 @@ def __init__( if not self._rxadc: raise Exception("Error in selecting matching device") + self._rx_channel_names = [] for ch in self._rxadc.channels: name = ch._id self._rx_channel_names.append(name) diff --git a/adi/ad777x.py b/adi/ad777x.py index 1a6ab908d..ea98c11dd 100644 --- a/adi/ad777x.py +++ b/adi/ad777x.py @@ -46,6 +46,8 @@ def __init__(self, uri="", device_name=""): if not self._rxadc: raise Exception("Error in selecting matching device") + self._rx_channel_names = [] + self.channel = [] for ch in self._ctrl.channels: name = ch._id self._rx_channel_names.append(name) diff --git a/adi/ad7799.py b/adi/ad7799.py index 5dbf43ba0..a6836a8b7 100644 --- a/adi/ad7799.py +++ b/adi/ad7799.py @@ -21,6 +21,7 @@ def __init__(self, uri=""): self._rxadc = self._ctx.find_device("AD7799") + self.channel = [] for name in self._rx_channel_names: self.channel.append(self._channel(self._rxadc, name)) diff --git a/adi/ad9083.py b/adi/ad9083.py index 4aca5d076..0f9e8e35a 100644 --- a/adi/ad9083.py +++ b/adi/ad9083.py @@ -25,6 +25,7 @@ def __init__(self, uri=""): if not self._rxadc: raise Exception("Cannot find device axi-ad9083-rx-hpc") + self._rx_channel_names = [] for ch in self._rxadc.channels: if ch.scan_element and not ch.output: self._rx_channel_names.append(ch._id) diff --git a/adi/ad9172.py b/adi/ad9172.py index 1ec636e3f..6aaeb9c92 100644 --- a/adi/ad9172.py +++ b/adi/ad9172.py @@ -25,6 +25,7 @@ def __init__(self, uri=""): if not self._txdac: raise RuntimeError("Could not find axi-ad9172-hpc") + self._tx_channel_names = [] for chan in self._txdac.channels: if ( hasattr(chan, "scan_element") diff --git a/adi/adaq8092.py b/adi/adaq8092.py index eb8dad6f6..f35f25507 100644 --- a/adi/adaq8092.py +++ b/adi/adaq8092.py @@ -12,6 +12,8 @@ class adaq8092(rx, context_manager): """ADAQ8092 14-Bit, 105MSPS, Dual-Channel uModule Data Acquisition Solution""" _device_name = "adaq8092" + _rx_stack_interleaved = True + _rx_data_type = np.int16 def __init__( self, uri="", @@ -27,8 +29,7 @@ def __init__( self._rxadc = self._ctx.find_device("cf_axi_adc") self._device_name = "cf_axi_adc" - rx._rx_stack_interleaved = True - rx._rx_data_type = np.int16 + self._rx_channel_names = [] for ch in self._rxadc.channels: name = ch._id self._rx_channel_names.append(name) diff --git a/adi/adpd1080.py b/adi/adpd1080.py index 54e028566..67436ae49 100644 --- a/adi/adpd1080.py +++ b/adi/adpd1080.py @@ -34,7 +34,8 @@ def __init__(self, uri="", device_index=0): # dynamically get channels and sorting them after the color # self._ctrl.channels.sort(key=lambda x: str(x.id[14:])) - + self._rx_channel_names = [] + self.channel = [] for ch in self._ctrl._channels: name = ch._id self._rx_channel_names.append(name) diff --git a/adi/adpd188.py b/adi/adpd188.py index 728311153..b74dfd296 100644 --- a/adi/adpd188.py +++ b/adi/adpd188.py @@ -35,7 +35,8 @@ def __init__(self, uri="", device_index=0): # dynamically get channels and sorting them after the color # self._ctrl.channels.sort(key=lambda x: str(x.id[14:])) - + self._rx_channel_names = [] + self.channel = [] for ch in self._ctrl._channels: name = ch._id self._rx_channel_names.append(name) diff --git a/adi/adpd410x.py b/adi/adpd410x.py index 9b9c26cc1..85f19d0ff 100644 --- a/adi/adpd410x.py +++ b/adi/adpd410x.py @@ -30,6 +30,7 @@ def __init__(self, uri=""): self._rxadc = self._ctx.find_device("adpd410x") + self.channel = [] for name in self._rx_channel_names: self.channel.append(self._channel(self._rxadc, name)) diff --git a/adi/ltc2499.py b/adi/ltc2499.py index d8c81dff1..6b4c5f3c5 100644 --- a/adi/ltc2499.py +++ b/adi/ltc2499.py @@ -24,6 +24,7 @@ def __init__(self, uri=""): raise Exception("No device found") _channels = [] + self._rx_channel_names = [] for ch in self._ctrl.channels: self._rx_channel_names.append(ch.id) _channels.append((ch.id, self._channel(self._ctrl, ch.id))) diff --git a/adi/ltc2983.py b/adi/ltc2983.py index 4fa92278f..2b075b197 100644 --- a/adi/ltc2983.py +++ b/adi/ltc2983.py @@ -27,6 +27,7 @@ def __init__(self, uri=""): # dynamically get channels _channels = [] + self._rx_channel_names = [] for ch in self._ctrl.channels: self._rx_channel_names.append(ch.id) _channels.append((ch.id, self._channel(self._ctrl, ch.id))) diff --git a/adi/max11205.py b/adi/max11205.py index f51e64b5b..5ff84f068 100644 --- a/adi/max11205.py +++ b/adi/max11205.py @@ -47,6 +47,8 @@ def __init__(self, uri="", device_name=""): if not self._rxadc: raise Exception("Error in selecting matching device") + self._rx_channel_names = [] + self.channel = [] for ch in self._ctrl.channels: name = ch._id self._rx_channel_names.append(name) diff --git a/adi/max14001.py b/adi/max14001.py index c25f10ba4..12b1aeb97 100644 --- a/adi/max14001.py +++ b/adi/max14001.py @@ -47,6 +47,8 @@ def __init__(self, uri="", device_name=""): if not self._rxadc: raise Exception("Error in selecting matching device") + self._rx_channel_names = [] + self.channel = [] for ch in self._ctrl.channels: name = ch._id self._rx_channel_names.append(name) diff --git a/adi/max9611.py b/adi/max9611.py index e4debb266..9d9e941f7 100644 --- a/adi/max9611.py +++ b/adi/max9611.py @@ -39,6 +39,7 @@ def __init__(self, uri="", device_name=""): raise Exception("Error in selecting matching device") # Dynamically get channels after the index + self._rx_channel_names = [] for ch in self._ctrl.channels: name = ch._id