Simulink Raspberry Hardware External Mode Error Issue
2 次查看(过去 30 天)
显示 更早的评论
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 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Raspberry Pi Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!