Real-Time UDP receive for xPC target 5.1

1 vue (au cours des 30 derniers jours)
saniyar
saniyar le 7 Août 2014
Réponse apportée : Xikai le 7 Déc 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.

Réponses (2)

Xikai
Xikai le 7 Déc 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 le 7 Déc 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!

Translated by