Real-Time UDP receive for xPC target 5.1

2 views (last 30 days)
saniyar
saniyar on 7 Aug 2014
Answered: Xikai on 7 Dec 2014
Hello, I am using xPC 5.1 with Matlab 2011b on host PC. I built a simple model to receive the UDP packets from the specific IP address, but the receive block can't receive any message from source. The xPC, host PC and UDP source are in a same subnet network. I checked the received packets via Wireshark in host PC, I received the UDP packets from the source IP but I can't recive in xPC. By the way I have only one network card and I am using a switcher between xPC, host and UDP source.
You can find the Wireshark and Simulink model pictures in below. Thanks in advance.

Answers (2)

Xikai
Xikai on 7 Dec 2014
I met with the same problem. By use of Wireshark, I found the udp receiving Port number automatically changed to another port number (for example port number:10000) not the desired port in the xPC target environment. Good luck!

Xikai
Xikai on 7 Dec 2014
I met with the same problem. By use of Wireshark, I found the udp receiving Port number automatically changed to another port number (for example port number:10000) not the desired port in the xPC target environment. Good luck!

Community Treasure Hunt

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

Start Hunting!