This is an old revision of the document!
To simplify the use of different devices a python package was created interface with the different IIO drivers. The module pyadi-iio, provides device-specific APIs built on top of the current libIIO python bindings. These interfaces try to match the driver naming as much as possible without the need to understand the complexities of libIIO and IIO. In general, if you are familiar with python this is a great starting point for using different ADI parts and can even run on some ADI development systems as well.
There are three steps required to setup PyADI-IIO:
pip install pylibiio
pip install pyadi-iio
pip install pylibiio * Make sure you are using the Python 3 version of pip. That might be pip3.
pip install pyadi-iio * Make sure you are using the Python 3 version of pip. That might be pip3.
pip install pylibiio
pip install pyadi-iio
Devices specific examples are available in the source repo, and the sphinx doc, but here is the basic idea
# Import library import adi # Create radio object sdr = adi.Pluto() # Configure properties sdr.rx_rf_bandwidth = 4000000 # Get data data = sdr.rx()
See repo readme for supported hardware.
Please direct support question or enhancement requests to the Software Interface Tools Forums on EngineerZone
End of Document