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.
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.
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'
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:
Full path to the third-party tool executable. Enter as a string, for example: '/hdltools/Xilinx/14.6/ISE_DS/ISE/bin/lin64/impact'.
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'.
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');