Run Model on BeagleBoard Hardware

This example shows how to prepare, configure, and run a simple model on your BeagleBoard hardware.

Before starting this procedure:

  • Connect your board to the network and to a power supply.

  • Create or open a Simulink® model.

To prepare and run the model:

  1. Use File > Save As to create a working copy of your model. Keep the original model as a backup copy.

  2. In your model, select ToolsRun on Target HardwarePrepare to Run. This action changes the model Configuration Parameters.

  3. In the Run on Target Hardware pane that opens, set the Target hardware parameter to BeagleBoard.

  4. If you have changed boards since the last time you updated the firmware or ran a model, update the Host name, User name, and Password parameters.

  5. Click the Deploy to Hardware button.

    This action automatically downloads and runs your model on the board.

      Note:   Pressing RESET or cycling the power on the BeagleBoard hardware during this step can cause the SSH utility to hang.

Running a new or updated model on the board:

  • Automatically stops a running model with the same name.

  • Does not stop running models that have other names.

To stop a model running on the board, enter the following commands in the MATLAB® Command Window:

For example, to stop the sumdiff model, enter:

To restart a model that was previously running on the board, or to run multiple instances of a model, enter the following commands in the MATLAB Command Window:


    Note:   You do not need to enter h=beagle; multiple times if a previous instance of h is available in the MATLAB Workspace.

For example, to restart the sumdiff model you stopped in the previous example, enter:'sumdiff');

Was this topic helpful?