在目标硬件上运行
将 MATLAB® 函数作为独立可执行文件部署到硬件上
MATLAB Support Package for Raspberry Pi® Hardware 还使您能够在硬件上部署 MATLAB 函数。使用 MATLAB Coder™,您可以为 MATLAB 算法生成 C 代码,并将其部署为在 Raspberry Pi 硬件上独立运行。即使硬件与计算机断开连接,独立可执行文件也会继续运行。要了解详细信息,请参阅Additional Capabilities with MATLAB Coder。
注意
您可以使用 MATLAB Online™ 在硬件上部署 MATLAB 函数。有关详细信息,请参阅Connect to Raspberry Pi Hardware Board in MATLAB Online。
对象
raspi | Connection to Raspberry Pi board |
函数
targetHardware | Create configuration object for hardware |
deploy | Deploy MATLAB function on hardware |
App
Raspberry Pi 资源监视器 | Monitor and manage Raspberry Pi resources (自 R2020b 起) |
主题
- Additional Capabilities with MATLAB Coder
Include additional capabilities for code generation.
- Automatically Run MATLAB Function on Raspberry Pi After Restart
Automatically start a MATLAB function deployed on Raspberry Pi hardware every time you restart the hardware.
- Workflow to Deploy MATLAB Function on Raspberry Pi
Workflow to explain the steps involved in deploying a MATLAB function on the hardware.
- 步骤 1: Create or Open a MATLAB Function
- 步骤 2: Run the MATLAB Function Using Live IO from Hardware
- 步骤 3: Add Compilation Directive to MATLAB Function
- 步骤 4: Check MATLAB Function Using Code Analyzer
- 步骤 5: Check MATLAB Function for Unsupported Calls
- 步骤 6: Create Hardware Configuration Object
- 步骤 7: Deploy MATLAB Function on Hardware