You can prepare, configure, and run a model on your Raspberry Pi™ 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 Tools > Run on Target Hardware > Prepare to Run to change the model Configuration Parameters.
When the Run on Target Hardware pane opens, set the Target hardware parameter to Raspberry Pi.
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 Raspberry Pi hardware during this step can cause the ssh utility used for downloading the model to hang.
You press RESET during this stage and are subsequently unable to download your model, shut down the hung ssh process using your host computer's task manager, or reboot your host computer.
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.
Caution Do not use the RESET button to stop a running model and reboot the board. Doing so can corrupt operating system and program files. To repair corrupt files, replace the firmware as described in Replace Firmware on Raspberry Pi Hardware.