MATLAB Answers

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

4 ビュー (過去 30 日間)
Felix
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.

回答 (2 件)

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