Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision |
resources:eval:user-guides:circuits-from-the-lab:cn0511 [30 Jan 2023 02:30] – Joyce Velasco |
---|
|
resources:eval:user-guides:circuits-from-the-lab:cn0511 [26 Apr 2023 01:14] (current) – [Pyadi-IIO] erbe reyta |
---|
[[/resources/tools-software/linux-software/pyadi-iio|PyADI-IIO]] is a python abstraction module for ADI hardware with IIO drivers to make them easier to use. This module 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.\\ |
|
=== Installation of Latest Lib-IIO and Other Requirements Needed to Run the Example === |
|
In order to run the current Python example a few additional steps need to occur. Once the next version of Analog Devices Kuiper Linux gets released (2021_R2), these steps will be removed. |
|
<note important> |
|
Step 1: Installation of the latest libad9166-iio |
|
<code> |
git clone https://github.com/analogdevicesinc/libad9166-iio |
</code> |
|
<code> |
cd libad9166-iio |
</code> |
|
<code> |
cmake ./CMakeLists.txt |
</code> |
|
<code> |
make |
</code> |
|
<code> |
sudo make install |
</code> |
|
<code> |
cd bindings/python |
</code> |
|
<code> |
sudo pip install -r requirements_dev.txt |
</code> |
|
<code> |
cmake ./CMakeLists.txt |
</code> |
|
<code> |
sudo make |
</code> |
|
<code> |
sudo make install |
</code> |
|
Step 2: Clone the latest pyadi-iio from github |
<code> |
git clone https://github.com/analogdevicesinc/pyadi-iio |
</code> |
|
Step 3: Installation of libatlas-base-dev linux packages |
<code> |
sudo apt-get install libatlas-base-dev |
</code> |
|
Then choose 'Y' if were asked to continue. |
|
<note> |
Enter the password “analog” whenever asked for it during the installation process |
</note> |
|
</note> |
After all these requirements has been loaded in the Raspberry Pi, example found in ~/home/analog/pyadi-iio/examples for CN0511 can now be executed. |
|
=== Running the Example === |