Wiki

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
resources:eval:user-guides:circuits-from-the-lab:eval-adxrs290-pmdz [16 Feb 2021 10:06] – [PyADI-IIO] Harvey John De Chavezresources:eval:user-guides:circuits-from-the-lab:eval-adxrs290-pmdz [17 Feb 2021 04:00] – [PyADI-IIO] Harvey John De Chavez
Line 242: Line 242:
  
 [[/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]]. Install PyADI-IIO using one of the methods in [[/resources/tools-software/linux-software/pyadi-iio|PyADI-IIO]].
  
Line 262: Line 263:
 === Running the Example === === Running the Example ===
  
-  - Connect the ADXRS290 to Raspberry Pi and turn the power on by attaching RPi's power cord+  - Connect the ADXRS290 to the device platform you've chosen
-  - Connect your laptop to the same network as the ADXRS290. Take note of ADXRS290'IP address. +  - If interfaced via RPI, connect your laptop to the same network as the ADXRS290 and take note of its IP address. For ADICUP3029, take note of the serial port used
-  - On the source code, go to the //examples// folder and open //adxrs290.py//Change the IP address on the URI and save. Make sure that only one context source is active and the other one is commented out depending on whether you are using the RPI board or the ADICUP3029.+  - On the source code, go to the //examples// folder and open //adxrs290.py//Provide the necessary context in order to detect the device. Make sure that only one context source is active and the other one is commented out depending on whether you are using the RPI board or the ADICUP3029.
   - Run the example by typing this line on the command prompt: <code> D:\pyadi-iio\examples>python adxrs290.py </code> <WRAP round 80% download> Below is a copy of the python script: \\ {{ :resources:eval:user-guides:circuits-from-the-lab:eval-adxrs290-pmdz:adxrs290.zip |adxrs290.py}}</WRAP>It will return these lines of data on the terminal: {{ :resources:eval:user-guides:circuits-from-the-lab:adxrs290_output.png?direct&700 |Output on Terminal}}    - Run the example by typing this line on the command prompt: <code> D:\pyadi-iio\examples>python adxrs290.py </code> <WRAP round 80% download> Below is a copy of the python script: \\ {{ :resources:eval:user-guides:circuits-from-the-lab:eval-adxrs290-pmdz:adxrs290.zip |adxrs290.py}}</WRAP>It will return these lines of data on the terminal: {{ :resources:eval:user-guides:circuits-from-the-lab:adxrs290_output.png?direct&700 |Output on Terminal}} 
   - You can opt to see a real-time plot of ADXRS290's output. To do this, open //adxrs290.py// and set //enable_plot// to True. {{ :resources:eval:user-guides:circuits-from-the-lab:adxrs290_enable-plot.png?direct&500 |Enable plot}} A plot will pop-up after running the code: {{ :resources:eval:user-guides:circuits-from-the-lab:adxrs290_plot.png?direct&500 |ADXRS290's Real-time Plot}}   - You can opt to see a real-time plot of ADXRS290's output. To do this, open //adxrs290.py// and set //enable_plot// to True. {{ :resources:eval:user-guides:circuits-from-the-lab:adxrs290_enable-plot.png?direct&500 |Enable plot}} A plot will pop-up after running the code: {{ :resources:eval:user-guides:circuits-from-the-lab:adxrs290_plot.png?direct&500 |ADXRS290's Real-time Plot}}
resources/eval/user-guides/circuits-from-the-lab/eval-adxrs290-pmdz.txt · Last modified: 03 Mar 2023 08:13 by Joyce Velasco