This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

setupTools

Set up MATLAB to work with third-party tools

Syntax

setupTools(dev,'ToolName',ToolName,'ToolPath',ToolPath)

Description

example

setupTools(dev,'ToolName',ToolName,'ToolPath',ToolPath) sets up MATLAB® to work with third-party tools that are required for running the support package.

setupTools modifies the PATH system variable in the current MATLAB session based on the argument ToolPath. Changes to PATH apply to the current MATLAB session only.

Examples

collapse all

Create a radio object for interfacing with USRP®[1] E310 radio hardware. Set up Xilinx® Vivado® development tools from a full installation on a Windows® machine using the radio object.

dev = sdrdev('E310');
setupTools(dev,'ToolName','Xilinx Vivado','ToolPath', ...
           'C:\Xilinx\Vivado\2018.2\bin\vivado.bat');

Input Arguments

collapse all

Interface to radio hardware, specified as a comm.SDRDevE310 radio object. To create this object, use the sdrdev function.

Name of third-party tool, specified as a character vector. The only valid value is 'Xilinx Vivado'.

Full path to the third-party tool executable, specified as a character vector.

Example: 'C:\Xilinx\Vivado\2018.2\bin\vivado.bat'

Tips

To execute setupTools commands automatically when MATLAB starts, add the commands to the MATLAB startup.m script.

Alternative

If you have HDL Coder™ installed, you can set up third-party HDL tools for use with MATLAB using hdlsetuptoolpath instead.

Introduced in R2016b


[1] USRP, USRP2, UHD, and Ettus Research are trademarks of National Instruments Corp.