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!