Product Stack for Raspberry Pi Blockset
This diagram provides a visual overview of how different MathWorks® products integrate to support various workflows with the Raspberry Pi® Blockset. Use the diagram to identify required dependencies for your application.
Raspberry Pi Blockset supports targeting of Raspberry Pi hardware using MATLAB® and Simulink®. You can add layers of coders to support different workflows in the Raspberry Pi Blockset.
The minimum product stack for MATLAB- and Simulink-based workflows enables basic connected I/O capabilities for rapid prototyping and simulation. Adding Embedded Coder® enables code generation, verification, and validation.
Choose a Product Stack
Which product stack you need depends on your workflow and application requirements. Raspberry Pi Blockset supports:
MATLAB-based workflows — For users who prefer script-based programming in MATLAB
Simulink-based workflows — For users who prefer model-based design in Simulink
MATLAB Workflows
Refer to this table to select a MATLAB-based workflow that suits your application.
| Goals | Workflow | Product Stack | Description |
|---|---|---|---|
| MATLAB I/O |
|
For more information, see Prototype and Test Algorithms Interactively with MATLAB I/O. |
Deploy standalone algorithms on Raspberry Pi hardware. | MATLAB targeting |
| Generate standalone C/C++ executables from MATLAB functions and deploy them directly to Raspberry Pi to run independently of MATLAB. For more information, see Deploy Standalone Algorithms Using MATLAB Targeting. |
Run parts of algorithm as generated code on Raspberry Pi while the rest runs in MATLAB. | MATLAB PIL simulation |
|
For more information, see Validate Code with Processor-in-the-Loop. |
Deliver web-based interactive applications. | Deploy Web App on MATLAB Web App server |
| Package MATLAB applications and host them on MATLAB Web App server for browser-based access. For more information, see Build Standalone Applications and Web Apps for Raspberry Pi. |
Share applications with others. | Create standalone application using MATLAB Compiler |
| Package MATLAB programs as standalone desktop applications that run without MATLAB. For more information, see Build Standalone Applications and Web Apps for Raspberry Pi. |
Simulink Workflows
Refer to this table to select a Simulink-based workflow that suits your application.
| Goals | Workflow | Product Stack | Description |
|---|---|---|---|
Build, simulate, and test models without code generation. | Connected I/O |
|
For more information, see Simulate and Test Models with Connected I/O. |
Adjust parameters in Simulink model while it runs on Raspberry Pi hardware. | Real-time parameter tuning with monitor and tune |
|
For more information, see Rapid Prototyping and Real Time Simulation. |
Verify generated C/C++ code running on Raspberry Pi. | Simulink PIL simulation |
|
For more information, see Validate Generated Code with Processor-in-the-Loop Simulation. |
Deploy C/C++ code that runs as a standalone executable program on Raspberry Pi hardware. | Build and deploy code generated for a Simulink model on Raspberry Pi hardware |
|
For more information, see Deploy Standalone Applications from Models. |
Analyze execution profile of deployed model. | Code execution profiling |
|
For more information, see Profile and Optimize Execution Performance. |
See Also
Compatibility of MathWorks Products with Raspberry Pi Hardware and Operating System | raspisetup