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:
Use File > Save As to create a working copy of your model. Keep the original model as a backup copy.
In your model, select ToolsRun on Target HardwarePrepare to Run. This action changes the model Configuration Parameters.
In the Run on Target Hardware pane that opens, set the Target hardware parameter to BeagleBoard.
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.
Click the Deploy to Hardware button.
This action automatically downloads and runs your model on the board.
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:
For example, to restart the sumdiff model you stopped in the previous example, enter: