Simulink Raspberry Hardware External Mode Error Issue

2 Ansichten (letzte 30 Tage)
Halil Leylak
Halil Leylak am 1 Mär. 2020
Beantwortet: Sylvain am 9 Dez. 2022
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.

Antworten (1)

Sylvain
Sylvain am 9 Dez. 2022
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.

Kategorien

Mehr zu Raspberry Pi Hardware finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by