sdrsetup

Set up MATLAB to work with radios and third-party tools

Syntax

sdrsetup
sdrsetup(Name,Value)

Description

sdrsetup modifies system PATH and LD_LIBRARY_PATH variables in the current MATLAB® session for using features in any installed SDR support packages.

sdrsetup(Name,Value) modifies 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 variable.

All changes to system environment variables using sdrsetup are 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 sdrsetup to your 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 Specifying 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   The function sdrsetup is automatically run when you first install the support package for RTL-SDR Radio, as well as each time you call the support package functions. You do not normally need to call sdrsetup; this reference page is for informational purposes only.

Input Arguments

expand all

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside single quotes (' '). You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Example: 'ToolName','Xilinx iMPACT'

'ToolName' — Name of third-party toolXilinx ISE | Xilinx iMPACT

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:

  • Xilinx ISE

  • Xilinx iMPACT

'ToolPath' — Full path to the third-party tool executablestring

Full path to the third-party tool executable. Enter as a string, for example: '/hdltools/Xilinx/14.6/ISE_DS/ISE/bin/lin64/impact'.

'LibUSBPath' — Full path to where libusb is located (Linux)string

Specify this path for Linux installations that do not have the libusb path already in the LD_LIBRARY_PATH environment variable. Enter as a string, for example: '/hdltools/lib/libusb/64bit'.

Examples

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');
Was this topic helpful?