Modern digital communications: a hands-on approach
COM-430
Installing the Support Package for USRP® Radio (Matlab)
Page content
The support package works with Matlab
R2016b or later versions. We do recommend installing the most recent version of Matlab, as the USRP drivers run much faster compared with older versions.
In order to install the support package
you need to have an account with Mathworks. If you do not have an
account, you can create one by using the following link:
https://ch.mathworks.com/mwaccount/register?uri=%2Fmwaccount%2F
For the question “How will you use MathWorks software?” please select “Student use” option.
Once you have created your account (or
made sure that you remember the password of your existing account)
you can proceed with the installation procedure described on
Mathworks’ webpage:
https://ch.mathworks.com/help/supportpkg/usrpradio/ug/install-support-package-for-usrp-radio.html
Accept the license agreements for both Mathworks and USRP and follow the instructions provided by the installer.
To test the correct installation of the USRP support package, type findsdru in Matlab’s command window. No boards need to be connected for this test. If the command is returning no error, then the installation was successful.
===============================================
===============================================
For versions of Matlab older than 2019, you might need to perform some additional steps, which are detailed below.
If you get an error concerning the installation of a third-party software, you should follow the steps below:
- Locate the folder where the required software is downloaded. For most operating systems, it should be under the "Downloads" folder under the folder "MathWorks\SupportPackages\R2016b\archives\3p".
- Inside the above mentioned folder, locate libusb.instrset* folder.
- In this folder, replace libusb-1.0.18.tar.bz2 with the one from
- Start over the procedure with Add-Ons: Get Hardware Support Packages.
At the end of the install process you
will be asked to complete the configuration steps. Choose Setup
Now and follow the given instructions.
Once the configuration is finished, on
the MATLAB® Home tab, in the Environment
section, click on Set Path. Check that the following paths
have been added to the Matlab search path and save
them using the Save button.
- /home/username/Documents /MATLAB
- /home/username/Documents/MATLAB/SupportPackages/R2016b/toolbox/shared/sdr/sdru
- /home/username/Documents/MATLAB/SupportPackages/R2016b/toolbox/shared/sdr/sdru/bin/maci64 (../glnxa64 on Linux)
- /home/username/Documents/MATLAB/SupportPackages/R2016b/toolbox/shared/sdr/sdru/fpgatarget
- /home/username/Documents/MATLAB/SupportPackages/R2016b/toolbox/shared/sdr/sdru/sdrudemos
- /home/username/Documents/MATLAB/SupportPackages/R2016b/toolbox/shared/sdr/sdru/sdrumex
- /home/username/Documents/MATLAB/SupportPackages/R2016b/toolbox/shared/sdr/sdru/uhdapps
- /home/username/Documents/MATLAB/SupportPackages/R2016b/toolbox/shared/sdr/sdru/usrp_uhd_mapi