Main Content

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:

  1. UseFile>Save Asto create a working copy of your model. Keep the original model as a backup copy.

  2. In your model, go toModelingtab, and clickModel Settingsto openConfiguration Parameterswindow.

  3. In theHardware Implementationpanel, set theHardware boardparameter toRaspberry Pi.

  4. If you have changed boards since the last time you updated the firmware or ran a model, update theHost name,User name, andPasswordparameters.

  5. On theHardwaretab of the toolstrip, in theModesection, selectRun 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.

See Also