Simulink Raspberry Hardware External Mode Error Issue

조회 수: 1 (최근 30일)
Halil Leylak
Halil Leylak 2020년 3월 1일
답변: Sylvain 2022년 12월 9일
Hi,
Firstly sorry about my english. I could make some mistake.
I have a problem about raspbery pi hardware on simulink. You can see on the pictures bottom.
I m tring to control led and gpio pin on raspberry. I click Build, Deploy & Start. It works.
But then i click Monitor&Tune for monitoring signals. It error that i can not find solution.
I tried diffrent version of matlab but happened same error.
By the way my hardware setting is just like this link : https://www.mathworks.com/help/supportpkg/raspberrypi/examples/communicating-with-raspberry-pi-hardware.html
What can i do for fix this issue ? Thanks for help.
  댓글 수: 1
Alireza
Alireza 2022년 9월 8일
Hi, I have exactly this problem. Could you solve that?

댓글을 달려면 로그인하십시오.

답변 (1개)

Sylvain
Sylvain 2022년 12월 9일
Hi,
It is really difficult to read the error in the screenshots but I guess it is due to a failed connexion with the Raspberry Pi.
1) make sure you clear connexions (from Matlab) if you have a raspberry pi object in the workspace (this will block the communication).
2) close all SSH communications with the Rpi
3) From Matlab try to ping to the RPi by invoking the command: raspberrypi().
3a) if no raspberry pi is detected, you must setup the raspberry pi using the support package add-on tool: Home>Add-Ons>Manage Addons > Support package for Raspberry pi and click the wheel.
3b) if your raspberry pi is detected, make sure that in your simulink you have specified the hardware ip address.
Try to recompile.

카테고리

Help CenterFile Exchange에서 Raspberry Pi Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by