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
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.
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:
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:
You do not need to enter
For example, to restart the sumdiff model you stopped in the previous example, enter: