Contenuto principale

Deploy Standalone Applications from Models

Generate and deploy C/C++ code from Simulink® models to run independently on Raspberry Pi® hardware

Generate C/C++ code from Simulink models and deploy it to Raspberry Pi hardware to create standalone applications that run independently of your host computer. This lets the system operate autonomously on the hardware for a wide range of applications.

For more information on the product stack required for deploying Simulink models using Raspberry Pi Blockset, see Product Stack for Raspberry Pi Blockset.

Objects

raspberrypiGet host name, user name, password, and build directory

Functions

getRunOnBootGet name of Simulink model added to Run-on-boot
addToRunOnBootAdd Simulink model to Run-on-boot
removeRunOnBootRemove a Simulink model from Run-on-boot
listAudioDevicesList available ALSA audio devices
systemRun command in Linux shell on Raspberry Pi hardware
getFileTransfer file from Raspberry Pi hardware to host computer or MATLAB Drive
putFileTransfer file from host computer to target hardware
deleteFileDelete file on target hardware
openShellOpen terminal on host computer to use Linux shell on Raspberry Pi hardware

Apps

Raspberry Pi Resource Monitor AppMonitor and manage Raspberry Pi resources

Topics

Model Settings

expand all

Build actionSpecify whether you want only build or build, load, and run actions during code generation
Build directoryDefines where model is deployed
Run on boot Start deployed model every time hardware restarts
Enable parallel buildBuild the generated code and driver source code in parallel or compile code sequentially (Since R2022a)
Start-up delay (in seconds)Delay build or build and run by given amount of time
Enable deployment for Dashboard blocksEnable deployment of Dashboard blocks (Since R2021b)
IP address type IP address that web server uses to host dashboard (Since R2021b)
IP address IP address of device that hosts dashboard
WebSocket portPort number that WebSocket server uses to transfer data (Since R2021b)
HTTP portPort number that HTTP server uses to host dashboard (Since R2021b)

Related Information

Featured Examples