How can I run Simulink executable on Raspberry Pi?

9 ビュー (過去 30 日間)
Pichaya Lertvilai
Pichaya Lertvilai 2017 年 1 月 13 日
コメント済み: yaser arafat kazi 2019 年 5 月 21 日
I created a Simulink model and deployed it successfully on a Raspberry Pi. The model can be run from MATLAB terminal using
% code
h=raspberrypi;
h.runModel('modelName');
I want to run the model directly from the Pi without using MATLAB. I tried to find the executable at /home/pi/Simulink_model_name_rtt/MW/Simulink_model_name but the subfolder MW does not exist (there is a folder named modelName_ert_rtw created at /home/pi). I used MATLAB2016a and Raspberry Pi 3 hardware.
Thanks a lot!
  1 件のコメント
Von Duesenberg
Von Duesenberg 2017 年 1 月 13 日
I suppose you've also tried the Deploy to Hardware button from the Simulink menu?

サインインしてコメントする。

採用された回答

Tohru Kikawada
Tohru Kikawada 2017 年 1 月 13 日
Use the following command on your Raspberry Pi terminal:
sudo ./modelName.elf
See this link for details.
  3 件のコメント
vcmorini
vcmorini 2017 年 3 月 16 日
Hi,
I tried this. It works.
But I have an .elf which does not work! Running in external mode, is perfect! Deploying, NO errors! But it does not run.
I tried isModelRunning(raspberrypi,'model') and it returns '0'.
I am using coder.ceval, and other functions from coder package to save a .txt in the raspberry folder. Still, works perfect on External Mode.
You know what can be causing this?
Thks!
yaser arafat kazi
yaser arafat kazi 2019 年 5 月 21 日
.elf with not work if you are running the model either in external mode or PIL mode

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRun on Target Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by