diff --git a/adi/ad937x.py b/adi/ad937x.py index 651ee5c56..5c8e0a802 100644 --- a/adi/ad937x.py +++ b/adi/ad937x.py @@ -34,6 +34,7 @@ def __init__( self._rxadc = self._ctx.find_device("axi-ad9371-rx-hpc") self._rxobs = self._ctx.find_device("axi-ad9371-rx-obs-hpc") self._txdac = self._ctx.find_device("axi-ad9371-tx-hpc") + self._ctx.set_timeout(30000) # Needed for loading profiles if not disable_jesd_control and jesd: self._jesd = jesd(uri, username=username, password=password) @@ -324,6 +325,17 @@ def obs_rf_port_select(self, value): def jesd204_statuses(self): return self._jesd.get_all_statuses() + @property + def profile(self): + """Load profile file. Provide path to profile file to attribute""" + return self._get_iio_dev_attr("profile_config") + + @profile.setter + def profile(self, value): + with open(value, "r") as file: + data = file.read() + self._set_iio_dev_attr_str("profile_config", data) + class ad9375(ad9371): """ AD9375 Transceiver """