Can I send Arduino analog input values via UDP to Raspberry Pi and watch the scope on simulink at my PC?
3 次查看(过去 30 天)
显示 更早的评论
I need some analog input values for a mini HiL with my Raspberry Pi. Can I read analog values with my Arduino, send them via UDP to my Raspberry Pi and then watch the value with a scope block in my simulink programm?
I already tested UDP communication between my PC and Raspberry Pi and it works fine. To send my Arduino I/Os to the Raspberry Pi I use the the code from https://www.arduino.cc/en/pmwiki.php?n=Reference/EthernetUDPWrite, but there is no reasonable data on my scope block. Is it easier with the Simulink support package for Arduino? Or isn't it possible to send/receive UDP to/from different devices (in the view of the RPi)?
I have a cross cable from Arduino Ethernet Shield to Raspberry Pi Ethernet Port and a USB to Ethernet Adapter from Raspberry Pi to my PC. Due to the fact that SSH from my PC to RPi is running, I'm sure that the hardware should work.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Run on Target Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!