Post Go back to editing

CN0565 - setting PGA and R_TIA via pyadi-iio

Thread Summary

The user inquired about setting the PGA gain and R_TIA of the AD5940 in the CN-0565 using pyadi-iio. The final answer indicated that these settings can only be accessed at the device driver level, but can also be controlled through debugfs in the IIO Oscilloscope. The user encountered an issue with the IIO Oscilloscope not detecting the device, receiving a 'No such file or directory' error.
AI Generated Content
Category: Software
Product Number: AD5940

Hi everybody,

I have a question about interfacing with the CN-0565 using pyadi-iio . I am trying to understand if I can set the PGA of the high speed ADC and the R_TIA of the TIA using pyadi-iio.
The pyadi-iio page mentions that "On some devices it is possible to access registers." (https://analogdevicesinc.github.io/pyadi-iio/libiio.html) but I need to know if I can do this before buying the device, as otherwise it will not be useful for my setup.

I have seen that attributes like cn0565.excitation_amplitude can be set using the python interface, but the PGA gain and the R_TIA are not accessible like this. I know they can be set via the registers on the AD5940 but I cannot figure out if I will be able to write to these registers using pyadi-iio.

Any help would be greatly appreciated!

Thank you

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.