Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
resources:eval:user-guides:circuits-from-the-lab:cn0548 [18 Nov 2021 08:55] – Registration Harvey John De Chavezresources:eval:user-guides:circuits-from-the-lab:cn0548 [23 Nov 2021 12:04] – [Running the Example] Harvey John De Chavez
Line 98: Line 98:
 [[/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.\\ [[/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.\\
  
-Install PyADI-IIO using one of the methods in [[/resources/tools-software/linux-software/pyadi-iio|PyADI-IIO]].\\ +===Installing and Setting up the PyADI-IIO Enviroment=== 
- +  - There are minimal variations in installing PyADI-IIO depending on your operating system. [[/resources/tools-software/linux-software/pyadi-iio| You may refer to this guide regarding the initial steps to install PyADI-IIO for your machine.]] \\ \\ 
-===Cloning the Repository and Setting up the PyADI-IIO Enviroment=== +  - Upon performing the OS-specific stepswe will also be needing the matplotlib package for the plotting of data: <code> pip install matplotlib</code>
-  - Clone the pyadi-iio master repository. Create a folder where you want to clone the repositorynavigate to this folder using a terminal (command prompt for Windows) and enter the following command:<code> git clone https://github.com/analogdevicesinc/pyadi-iio.git </code> +
-  - Navigate into the //pyadi-iio// folder and install the required packages for the demo. Enter the following commands: <code> pip install -r requirements.txt </code> We will also be needing the matplotlib package for the plotting of data: <code> pip install matplotlib</code> +
-  - Lastly, finish the environment setup by invoking the setup.py file. <code> python setup.py install </code>+
 <note> In case your system is specifically designed for a certain application, you may want to consider using a virtual environment in doing this demo. It should also help in dealing with system config and version issues.</note> <note> In case your system is specifically designed for a certain application, you may want to consider using a virtual environment in doing this demo. It should also help in dealing with system config and version issues.</note>
 \\ \\
Line 111: Line 108:
  
 ===Starting a new session === ===Starting a new session ===
-  - Download the given python script into the //examples// folder of the pyadi-iio directory. Using a terminal, navigate to the said folder and invoke the script. <code> python CN0548_simple_plot.py </code> <WRAP round 80% download> Below is a copy of the python script: \\ {{ :resources:eval:user-guides:circuits-from-the-lab:cn0548:cn0548_simple_plot.zip |CN0548_simple_plot.py}} </WRAP>+  - Download the given python script below and note where the file is located, you may opt to relocate the file to a different folder or directory. Using a terminal, navigate to the location of the file and run the script. <code> python CN0548_simple_plot.py </code> <WRAP round 80% download> Below is a copy of the python script: \\ {{ :resources:eval:user-guides:circuits-from-the-lab:cn0548:cn0548_simple_plot.zip |CN0548_simple_plot.py}} </WRAP>
   - Upon running the script, some general reminders regarding the board usage will be displayed. Make sure to read these reminders before proceeding. Press the //Enter// key to proceed. {{ :resources:eval:user-guides:circuits-from-the-lab:cn0548:reminder.png?600 |}}\\   - Upon running the script, some general reminders regarding the board usage will be displayed. Make sure to read these reminders before proceeding. Press the //Enter// key to proceed. {{ :resources:eval:user-guides:circuits-from-the-lab:cn0548:reminder.png?600 |}}\\
   - As mentioned earlier, the board has a memory feature that allows the user to quickly configure the sample code using the configuration from the last session. The user can decide whether to reuse the previous setting or set up a new configuration. The next items will discuss the program flow given that no session record file is found i.e. first run of the sample code. {{ :resources:eval:user-guides:circuits-from-the-lab:cn0548:new_overview.png?600 |}}  \\ \\   - As mentioned earlier, the board has a memory feature that allows the user to quickly configure the sample code using the configuration from the last session. The user can decide whether to reuse the previous setting or set up a new configuration. The next items will discuss the program flow given that no session record file is found i.e. first run of the sample code. {{ :resources:eval:user-guides:circuits-from-the-lab:cn0548:new_overview.png?600 |}}  \\ \\
resources/eval/user-guides/circuits-from-the-lab/cn0548.txt · Last modified: 04 Feb 2022 08:10 by Harvey John De Chavez