Run金宝appModel onRaspberry PiHardware
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:
UseFile>Save Asto create a working copy of your model. Keep the original model as a backup copy.
In your model, go toModelingtab, and clickModel Settingsto openConfiguration Parameterswindow.
In theHardware Implementationpanel, set theHardware boardparameter to
Raspberry Pi
.If you have changed boards since the last time you updated the firmware or ran a model, update theHost name,User name, andPasswordparameters.
On theHardwaretab of the toolstrip, in theModesection, select
Run on board
, and then clickBuild, Deploy & Start. 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.