This shows you the differences between two versions of the page.
Previous revisionNext revision | |||
— | resources:tools-software:linux-software:iio_oscilloscope [25 Jan 2022 00:45] – [macOS] Travis Collins | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== IIO Oscilloscope ====== | ||
+ | {{ : | ||
+ | |||
+ | ===== About ===== | ||
+ | |||
+ | The ADI IIO Oscilloscope is a cross platform GUI application, | ||
+ | |||
+ | ===== Installation ===== | ||
+ | |||
+ | ====== | ||
+ | {{page>: | ||
+ | |||
+ | |||
+ | ==== Linux ==== | ||
+ | |||
+ | For building on the target, we recommend using the [[/ | ||
+ | |||
+ | To build on a host, do not use the script, you **must**: | ||
+ | - make sure the following libraries are installed. This list is maintained in the '' | ||
+ | > **apt-get -y install libglib2.0-dev libgtk2.0-dev libgtkdatabox-dev libmatio-dev libfftw3-dev libxml2 libxml2-dev bison flex libavahi-common-dev libavahi-client-dev libcurl4-openssl-dev libjansson-dev cmake libaio-dev libserialport-dev** | ||
+ | </ | ||
+ | - build **and install** the libiio library, by following these [[libiio# | ||
+ | - build **and install** the libad9361-iio library, by following these [[: | ||
+ | - download the source < | ||
+ | > **git clone https:// | ||
+ | > **cd iio-oscilloscope** | ||
+ | > **git checkout origin/ | ||
+ | </ | ||
+ | rgetz@pinky: | ||
+ | rgetz@pinky: | ||
+ | rgetz@pinky: | ||
+ | </ | ||
+ | - and run `make` and `make install`. If you did not do a '' | ||
+ | rgetz@pinky: | ||
+ | rgetz@pinky: | ||
+ | rgetz@pinky: | ||
+ | </ | ||
+ | - if you don't want to do a '' | ||
+ | ./osc: error while loading shared libraries: libosc.so: cannot open shared object file: | ||
+ | No such file or directory | ||
+ | </ | ||
+ | |||
+ | ==== macOS ==== | ||
+ | |||
+ | The recommended method is to use brew which we there is a recipe for: | ||
+ | < | ||
+ | git clone -b fix-gtk-upgrade https:// | ||
+ | cd homebrew-formulae | ||
+ | brew install --build-from-source ./ | ||
+ | # if necessary: brew link --overwrite gtkdatabox-prev1 | ||
+ | brew install --build-from-source ./ | ||
+ | </ | ||
+ | |||
+ | ====== User guide ====== | ||
+ | |||
+ | ===== Launching the application ===== | ||
+ | |||
+ | ==== Running Local ==== | ||
+ | |||
+ | The application can run locally which means it runs on the same platform where your device is connected. | ||
+ | |||
+ | To start the IIO Oscilloscope open up the start menu of your system and 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. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | ==== Running Remote ==== | ||
+ | |||
+ | The application can be used to connect to another platform that has a connected device in order to configure the device and read data from it. You can connect in 3 different ways: | ||
+ | - Manually:< | ||
+ | < | ||
+ | > **export OSC_REMOTE=IP address of the remote platform** (old) | ||
+ | > **export IIOD_REMOTE=IP address of the remote platform** (new) | ||
+ | > **osc** | ||
+ | </ | ||
+ | </ | ||
+ | - Settings -> Connect and enter the IP address in the popup window, and click " | ||
+ | - Settings -> Connect and click " | ||
+ | The application can be used to connect to another platform that runs no-OS software: | ||
+ | https:// | ||
+ | |||
+ | |||
+ | ===== Using the application ===== | ||
+ | |||
+ | ==== Main Window ==== | ||
+ | |||
+ | {{ : | ||
+ | Each plugin (or tab) can be detached from the main window simply by clicking on the button placed on the right side of the name of the plugin. Close the detached window to attach the plugin back to the main window. | ||
+ | |||
+ | The Main Window is designed to display a configuration panel (plugin) for each device recognized by the system. Additional plugins will be loaded for device debugging and monitoring purposes such as: | ||
+ | |||
+ | === DMM Tab/Plugin === | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | The **DMM** Plugin: The Digital Multimeter continuously displays device specific data once the start button is activated. | ||
+ | * **Device** tab: Displays the list of all available devices. | ||
+ | * **Active channels ** tab: | ||
+ | * **Right side** tab: Displays data readings of the enabled channels in Active channels tab. | ||
+ | |||
+ | \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ | ||
+ | |||
+ | === Debug Tab/Plugin === | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | **Debug** Plugin: Is a tool for device debugging. Since " | ||
+ | |||
+ | * **Device Selection: | ||
+ | * **IIO Device Attributes: | ||
+ | * **Register: | ||
+ | * **Detailed Register Map:** When enabled it displays a graphical representation of a register and groups the bits by their functionality. When disabled the newly displayed option (//Register Map Type//) allows the selection of the register map to be used. SPI registers refer to the internal registers of the device while the AXI Core registers belong to the HDL core associated with the device. | ||
+ | * **Enable AutoRead:** When enabled it allows the register to be read automatically as the register address changes. | ||
+ | * **Address: | ||
+ | * **Value:** The value of the register at the given address. | ||
+ | |||
+ | \\ \\ \\ \\ | ||
+ | === Hardware Specific Tab/Plugins === | ||
+ | |||
+ | There may be hardware specific plugins/ | ||
+ | |||
+ | |||
+ | ==== Capture Window ==== | ||
+ | |||
+ | {{ : | ||
+ | The Capture Window is where device data is displayed. | ||
+ | |||
+ | * **Capture Window Settings** | ||
+ | * **Plot Title:** Click Edit-> | ||
+ | * **Show Settings:** Click View-> | ||
+ | * **Menu** (Along top of the capture/ | ||
+ | * **File** | ||
+ | * **Save As :** Saves data to file. | ||
+ | * **Quit :** Close the capture/ | ||
+ | * **Edit** | ||
+ | * **Plot Title :** Change the name of the window. | ||
+ | * **View** | ||
+ | * **Show Settings :** show/hide all settings in the left panel and allow the plot to fill the entire window. | ||
+ | * **Full Screen :** Will make the window full screen. | ||
+ | * **Settings** | ||
+ | * **Device list:** Lists all available ADCs and the corresponding channels. It allows selecting the channels to be displayed. | ||
+ | * **Plot type** | ||
+ | * **Time domain:** Plots the signal in the time domain. Displays the raw samples. | ||
+ | * **Sample count:** Selects the number of samples for time domain, constellation and cross-correlation plotting | ||
+ | * **Graph Type:** Selects the type of all graphs: lines or dots. | ||
+ | * **Frequency domain:** Plots the signal in the frequency domain. Performs a FFT on the signal and displays it. | ||
+ | * **FFT size:** Selects the size of the FFT for frequency domain plotting | ||
+ | * **Window:** Selects the FFT Window. Selecting a window function is not a simple task. Each window function has its own characteristics and suitability for different applications (some are more frequency accurate, others are more amplitude accurate). To choose a window function, you (the user) must select the most appropriate one. Check the [[./ | ||
+ | * **FFT Average:** Selects the average weight to be applied to the FFT samples. | ||
+ | * **PWR Offset:** Selects the offset of the FFT graph. | ||
+ | * **Constellation: | ||
+ | * **Sample count:** Selects the number of samples for time domain, constellation and cross-correlation plotting | ||
+ | * **Graph Type:** Selects the type of all graphs: lines or dots. | ||
+ | * **Cross Correlation: | ||
+ | * **Sample count:** Selects the number of samples for time domain, constellation and cross-correlation plotting | ||
+ | * **Graph Type:** Selects the type of all graphs: lines or dots. | ||
+ | * **Info** | ||
+ | * **Markers :** Displays marker measurements. | ||
+ | * **Devices :** Displays Device info (sample rate) | ||
+ | * **Plot Options/ | ||
+ | * **Capture/ | ||
+ | * **Zoom In :** Zooms in on a region of the plot. | ||
+ | * **Zoom Out :** Zooms out from a region of the plot. | ||
+ | * **AutoZoom :** Zooms automatically for the signal to fit the screen. | ||
+ | * **Save As :** Saves data to file. | ||
+ | * **FullScreen :** Enters/ | ||
+ | * **Auto scale :** When enabled the visible area will automatically be re-scaled to fit the entire plot. | ||
+ | * **Show grid :** Shows or hides the grid in the plot window. | ||
+ | * **Y Max :** Adjusts the upper limit of the vertical axis when **Auto scale** is disabled. | ||
+ | * **Y Min :** Adjusts the lower limit of the vertical axis when **Auto scale** is disabled. | ||
+ | * **New Plot :** Creates a new plot of the same type. | ||
+ | |||
+ | === Activating Markers === | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Markers are used for plot data measurement in when looking in the frequency domain or cross correlations. To activate the markers right click on the plot and select from the marker menu the type of marker you want to enable. Make sure the capture process is running and the appropriate domain is selected in order to enable the markers properly. The following types of markers are available: | ||
+ | * FFT domain (1 channel enabled): Peak, Fixed and Single Tone markers. | ||
+ | * FFT domain (2 channels enabled): Peak, Fixed, Single Tone and Image markers. | ||
+ | * Constellation: | ||
+ | |||
+ | The enabling of a marker will display a set of 5 markers by default. You can add more markers by selecting Add Marker from the marker menu and remove some by selection Remove Maker. | ||
+ | |||
+ | Fixed markers are designed to have their position moved by the user. Once the fixed markers are visible on the plot right click on the marker symbol and while holding the right button pressed move the mouse to the desired location on the plot and release the right button. | ||
+ | |||
+ | To disable the markers select Markers Off from the marker menu. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | === Saving Captured Data === | ||
+ | {{ : | ||
+ | |||
+ | \\ \\ \\ \\ \\ | ||
+ | |||
+ | Once the data is captured, it can be saved using one of the following formats: | ||
+ | * Agilent VSA | ||
+ | * .csv | ||
+ | * .mat | ||
+ | * .png | ||
+ | |||
+ | |||
+ | Click on File→Save As to open the dialog needed to save the data. | ||
+ | |||
+ | \\ \\ \\ \\ | ||
+ | |||
+ | === Channel Settings === | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | - Simple math operation can be applied to the channel data. Right click on the name of a channel listed in the Device list and select Math Settings to open the menu with the math operations. | ||
+ | - The graph color associated with the channel can be modified. Right click on the name of the channel and select Color Settings to open a color selection panel that will allow you to pick the desired color. | ||
+ | |||
+ | |||
+ | The settings can be applied only in Time domain. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | === Trigger settings === | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | In time domain, it is possible to select a capture channel as the trigger source of the oscilloscope. | ||
+ | To do so, right-click on the name of the device used for capture, and select **Trigger settings**. | ||
+ | The pop-up window that will open will allow you to configure the channel used for the trigger, as well as the trigger level and edge. | ||
+ | |||
+ | ====== Provided Waveforms ====== | ||
+ | |||
+ | Several waveforms are provided with the application for demonstration purposes, which can be loaded into different devices. | ||
+ | |||
+ | ====== Source code ====== | ||
+ | |||
+ | ===== Files ===== | ||
+ | |||
+ | The source code for the entire application is at [[https:// | ||
+ | |||
+ | |||
+ | ==== Internals ==== | ||
+ | |||
+ | If you want to make your own plugin, please refer to the [[./ | ||
+ | |||
+ | ===== More information ===== | ||
+ | |||
+ | * [[resources/ | ||
+ | * [[resources/ | ||
+ | |||
+ | {{page> |