Matlab standalone application running on Raspberry Pi or Xilinx Zynq-7020

조회 수: 6(최근 30일)
Felix 2016년 3월 2일
답변: Stefanie Schwarz 2021년 3월 30일
Hi to everyone, I have a question about running functions written in Matlab on a Raspberry Pi or a Xilinx Zynq-70XX. My plan is to read data from a database (Database toolbx) over a network with the Raspberry Pi. Then to evaluate the received data with a self written function and send this evaluation in the network to a database. In Matlab everything works perfectly. Now my question is, is it possible to export this "project" to the Raspberry Pi or Xilinix board, to run these functions without a connection to Matlab or the computer and how would you do this? Thanks in advance for your help.


Yuebin Zhou
Yuebin Zhou 2016년 3월 4일
To run standalone applications created from MATLAB compiler, MATLAB Runtime is required to be present on the machine. I don`t think MATLAB Runtime can be installed on these boards.

Stefanie Schwarz
Stefanie Schwarz 2021년 3월 30일
You will need Embedded Coder to create C/C++ from your MATLAB code or Simulink model, so that you can build "real" standalone exectuables to run on embedded hardware like Zynq or Raspberry Pi.
The steps to run a MATLAB/Simulink created application standalone on a Zynq target is explained here:
However, note that Database Toolbox functionality is not supported for C/C++ code generation. The only kind of deployment that is supported with Database Toolbox would be with MATLAB Compiler, but as Yuebin said, the MATLAB Runtime does not work on embedded targets like Zynq.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by