Set up MATLAB to work with radios and third-party tools
sdrsetup modifies system PATH and LD_LIBRARY_PATH
variables in the current MATLAB® session for using features in
any installed SDR support packages.
system PATH and LD_LIBRARY_PATH variables in the current MATLAB session
for using features in any installed SDR support packages and to allow
running third-party tools. Specify this path for Linux® installations
that do not have the libusb path already in the LD_LIBRARY_PATH environment
All changes to system environment variables using
performed for the current MATLAB session only. You must run this command
at the start of every MATLAB session in which you intend to use
any of the installed SDR support packages. You can automate this
step for future sessions by adding
startup.m file or by adding a shortcut to
the MATLAB shortcut bar.
For instructions on creating or modifying a startup script, see the MATLAB documentation for Startup Options in MATLAB Startup File.
Optionally, you can add any PATH and LD_LIBRARY_PATH modifications to the system environment using your OS.
RTL-SDR Radio and sdrsetup
Specify optional comma-separated pairs of
Name is the argument
Value is the corresponding
Name must appear
inside single quotes (
You can specify several name and value pair
arguments in any order as
'ToolName'— Name of third-party tool
Name of the third-party tool. If you have multiple tools in a specific directory then you do not need to setup each one separately. Valid values include:
'ToolPath'— Full path to the third-party tool executable
Full path to the third-party tool executable. Enter as a character
vector, for example:
'LibUSBPath'— Full path to where libusb is located (Linux)
Specify this path for Linux installations that do not have the
libusb path already in the LD_LIBRARY_PATH environment variable. Enter
as a character vector, for example:
Set up environment variables to use the Xilinx® installation in the specified folder.
sdrsetup('ToolName', 'Xilinx ISE', 'ToolPath', 'C:\Xilinx\14.6\ISE_DS\ISE\bin\nt64\ise.exe');
Set up environment variables to use the Xilinx installation in the specified folder and the libusb file in the specified path (for a Linux installation).
sdrsetup('ToolName', 'Xilinx iMPACT', 'ToolPath', '/hdltools/Xilinx/14.6/ISE_DS/ISE/bin/lin64/impact', 'LibUSBPath', '/hdltools/lib/libusb/64bit');