Can I send Arduino analog input values via UDP to Raspberry Pi and watch the scope on simulink at my PC?

3 views (last 30 days)
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.

Answers (0)

Community Treasure Hunt

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

Start Hunting!