Wiki

This version is outdated by a newer approved version.DiffThis version (06 Jun 2023 21:37) was approved by Ribhu Das Purkayastha.The Previously approved version (07 Apr 2023 08:17) is available.Diff

This is an old revision of the document!


ADI maintains a set of tools to interface with ADI precision converter devices within MATLAB and Simulink. These are combined into a single Toolbox. The list of supported converters is provided below.

Quick Start with Toolbox

The current stable Toolbox can be downloaded from MathWorks File Exchange.

Alternatively, the toolbox can also be installed using the .mltbx installer file from Precision Toolbox GitHub Release Page. Download the latest .mltbx file then open that file within MATLAB. Opening the file will automatically install the Toolbox, adding the necessary components to your MATLAB path. The “Analog Devices, Inc. Precision Toolbox” will appear in your Add-Ons Explorer within MATLAB.

To interface and stream data with hardware will require installation of libiio and one of two Hardware Support Packages from MathWorks. The libiio library can be obtained on the Github page of the project.

Libiio Installers

Installation of one of the following:

Skip the Zynq SDR or ADALM-PLUTO post-installation steps. They are not used. The FPGA carrier board SD card images are available on the AD-FMC-SDCARD for Zynq & Altera SoC Quick Start Guide page.

is required to use the streaming system objects or blocks. These support packages provide the necessary libIIO MATLAB bindings used by ADI's system objects.

Useful Articles

Building the Toolbox Manually

The toolbox can only be built under Linux or with Cygwin on a Windows platform. Conveniently, the entire process is automated with a Makefile located in the CI/scripts folder of the repository. The following is required on the system before the build process can be run:

  • A supported MATLAB version installed in the default location (/usr/local/MATLAB)
  • Packages: git zip unzip tar make wget sed
You should only manually build the toolbox if you require a custom branch or no toolbox installer is available

First clone the repo and move into it:

git clone https://github.com/analogdevicesinc/PrecisionToolbox.git
cd PrecisionToolbox

To build the toolbox run the following:

make -C CI/scripts build

To create an installable tlbx file run:

make -C CI/scripts gen_tlbx

Supported Converters

The following have device-specific implementations in MATLAB and Simulink. If a device has an IIO driver, MATLAB support is possible, but a device-specific MATLAB or Simulink interface may not exist yet.

Evaluation Card FPGA Board Streaming Support Targeting Variants and Minimum Supported Release
AD7380 Zedboard Yes No ADI (2018b) MathWorks (2021b)
AD7768 Zedboard Yes No ADI (2018b) MathWorks (2021b)
AD7768-1 Zedboard Yes No ADI (2018b) MathWorks (2021b)
AD4030-24 Zedboard Yes No ADI (2018b) MathWorks (2021b)
AD4630-16 Zedboard Yes No ADI (2018b) MathWorks (2021b)
AD4630-24 Zedboard Yes No ADI (2018b) MathWorks (2021b)

Help & Support

resources/tools-software/pcx-toolbox.1686080214.txt.gz · Last modified: 06 Jun 2023 21:36 by Ribhu Das Purkayastha