This version (01 Nov 2012 18:38) was approved by larsc.The Previously approved version (17 Oct 2012 14:56) is available.
The ADI IIO Oscilloscope is a example application, which demonstrates how to interface to the AD-FMCOMMS1 board form within a Linux system. The application supports plotting of the captured data in three different modes (time domain, frequency domain and constalation). The application also allows to view and modify several settings of the AD-FMCOMMS1 board's RX and TX paths.
You can either download the IIO Oscilloscope here from the wiki or checkout the latest version from the git repository.
Git: https://github.com/analogdevicesinc/iio-oscilloscope / git://github.com/analogdevicesinc/iio-oscilloscope.git
The IIO Oscilloscope uses the GTK+ and gtkdatabox libraries. Before the IIO Oscilloscope can be build the and packages need to be installed.
This specifies any shell prompt running on the target - Install IIO Oscilloscope build dependencies
> sudo apt-get install libgtkdatabox-0.9.1-1-dev libgtk2.0-dev
To build and install the IIO Oscilloscope you need to unpack the tar archive and run `make` and `make install` in the osc folder.
This specifies any shell prompt running on the host or target - Download and install the iio scope
> wget http://wiki.analog.com/_media/resources/tools-software/linux-software/osc.tar.bz2 > tar -xjf osc.tar.bz2 > cd osc > make > sudo make install
To start the IIO Oscilloscope open up the start menu of your system search for “IIO Oscilloscope”. E.g. if you are using a Ubuntu Linux system move your mouse cursor to the left side of your screen and “Dash home” button and type “IIO Oscilloscope” into the search box.
Clicking on the “Capture” button will start sampling with the currently selected settings. To stop sampling click the “Capture” button again. Setting changes will only be applied when a new capture session is started (With the exception of the “Show grid” option). It is not possible to switch between plotting modes or change the number of samples or FFT size while a capture session is active.
Clicking the “Save” button will write changes which have been made to the RX settings to the hardware.
Upon saving values will be rounded to the nearest value supported by the hardware. After the “Save” button has been clicked these values will be displayed.
Clicking the “Save” button will write changes which have been made to the TX settings to the hardware.
Upon saving values will be rounded to the nearest value supported by the hardware. After the “Save” button has been clicked these values will be displayed.
| Function | File |
|---|---|
| Main application | osc.c |
| IIO device access | iio_utils.c |
| IIO device access | iio_utils.h |
| IIO GTK+ widgets | iio_widget.c |
| IIO GTK+ widgets | iio_widget.h |