File Exchange

image thumbnail

Simulink Support Package for LEGO MINDSTORMS NXT Hardware

version (15.1 KB) by


11 Ratings



Simulink® Support Package for LEGO® MINDSTORMS® NXT Hardware enables you to create and run Simulink models on LEGO MINDSTORMS NXT hardware. The support package includes a library of Simulink blocks for configuring and accessing LEGO MINDSTORMS NXT sensors, actuators, and communication interfaces. It also enables you to interactively monitor and tune algorithms developed in Simulink as they run on LEGO MINDSTORMS NXT.
The support includes:
- Library of Simulink blocks that connect to LEGO MINDSTORMS NXT I/O, including microphone and speaker; numerous input sensors, including light, color, touch, and ultrasonic; and output sensors, such as servo motor and LCD
- Communication between multiple LEGO MINDSTORMS NXT robots
- Interactive parameter tuning and signal monitoring of applications running on LEGO MINDSTORMS NXT
- Model deployment for standalone operation
To see all Lego Support, see:

This support package is functional for MATLAB R2014a to R2016b.

Note: The Simulink® Support Package for LEGO® MINDSTORMS® NXT Hardware relies on third party software, which recently has been sporadically unavailable. If the download issue persists, please come back in a few days while we work with the vendor to provide a solution.

LEGO MINDSTORMS NXT hardware was retired by LEGO in 2013. We recommend to migrate to LEGO MINDSTORMS EV3 hardware and use LEGO MINDSTORMS EV3 Support from Simulink instead, which is available for download for Windows and Linux since R2014a, and for all platforms since R2016a:

For more information about Simulink Support for LEGO MINDSTORMS NXT in previous releases, please refer to this MATLAB Answers post:

Comments and Ratings (13)

Han Wei Sia

I'm using R2016b. Had problems installing the third party software too. But i tried the patch in the link below and it worked.

It's not work at all, Lego NXT not campatible with Matlab R2017a

dont work

Ana Aureles


Everytime I upload a model into a NXT brick (firmware 1.31, Matlab 2016b), the program doesn't run and it says "File Error!", even if uploading any program from the LEGO software works perfectly. Ideas?

It doesn't work....

I can't download the toolbox

Chenchen Lu

i tried thousand times but always failed by downloading third party software....i need it to start my graduation project...pls fix the issue....

pt chen

can't download...

Imtiaz Hussain

Imtiaz Hussain (view profile)



Major (view profile)


Third party issue description update

Available for releases R2014a to R2016b.

As of March 2016, this mlpkginstall is no longer functional for R2013a and R2013b.

As of March 2016, this mlpkginstall is no longer functional for R2013a and R2013b.

update link

no change - upgrading hardware support package download action

-minor description text changes

Updated image

Minor license change

MATLAB Release
MATLAB 9.1 (R2016b)

More Files in the  Maker Community

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video