Documentation

Install Support for LEGO MINDSTORMS NXT Hardware

This example shows how to add support for LEGO® MINDSTORMS® NXT hardware to the Simulink® product. After you complete this process, you can run Simulink models on your LEGO MINDSTORMS NXT hardware.

This process downloads and installs:

  • Third-party software development tools on your host computer.

  • A Simulink block library called Simulink Support Package for LEGO MINDSTORMS NXT Hardware.

  • Examples

For convenience, this document occasionally refers to LEGO MINDSTORMS NXT hardware as an "NXT brick" or as "target hardware".

To check for updates, repeat this process when a new version of MATLAB® software is released. You can also check for updates between releases.

Install, Update, or Uninstall Support Package

Install Support Package

  1. On the MATLAB Home tab, in the Environment section, click Add-Ons > Get Hardware Support Packages.

  2. In the Add-On Manager window, find and click the support package, and then click Install.

Update Support Package

On the MATLAB Home tab, in the Environment section, click Add-Ons > Check for Updates > Hardware Support Packages.

Uninstall Support Package

  1. On the MATLAB Home tab, in the Environment section, click Add-Ons > Manage Add-Ons.

  2. In the Add-On Manager window, find and click the support package, and then click Uninstall.

Complete Additional Setup Tasks

  1. If you clicked Setup Later at the end of the Add-On Manager installation process, you can restart hardware setup process.

    • On the MATLAB Home tab, in the Environment section, click Add-Ons > Manage Add-Ons. When the Add-On Manager opens, click Setup

    • Enter targetupdater in the MATLAB Command Window.

  2. In Support Package Installer, follow the on-screen instructions for each screen to install the LEGO MINDSTORMS NXT.

    For more information about the options on a particular screen, click the Help button.

  3. On the last screen, click Finish.

    Leave Show support package examples enabled to show Simulink Support Package for LEGO MINDSTORMS NXT Hardware Examples.

  4. If you have not done so previously, set up the NXT hardware, as described in Replace Firmware on NXT Brick.

Was this topic helpful?