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, go to Modeling tab, and click Model Settings to open Configuration Parameters window.
In the Hardware Implementation panel, set the
Hardware board 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.
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.