Real-Time UDP receive for xPC target 5.1
1 view (last 30 days)
Show older comments
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.
0 Comments
Answers (2)
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!
0 Comments
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!
0 Comments
See Also
Categories
Find more on Target Computer Setup in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!