Real time Udp Send and Receive Block
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I would like to send and receive data inside target computer(xpc target) by setting the Ip adresses of udp send and receive blocks as '127.0.0.1'. When I run the system as software in loop, It works.However, after compiled the model, that blocks didin't work. Is it possible to do that ? or Should I use different way to make it possible ?
2 Kommentare
Walter Roberson
am 23 Jul. 2022
Bearbeitet: Walter Roberson
am 23 Jul. 2022
Could you confirm that you want the same xpc host to send and receive the data?
If I understand correctly, xpc requires a dedicated program running on a real-time operating system, so if I understand correctly, you cannot have two different programs running on the same xpc exchanging data. As such you are setting up a loopback. Is that your intention?
Antworten (1)
Dimitri MANKOV
am 25 Jul. 2022
Hi Yavuzhan,
You can achieve this by using the UDP Send and UDP Receive blocks from the Simulink Real-Time library (see here for examples in R2020a and earlier / here for R2020b and later). Please note that the UDP Send and UDP Receive blocks require the IP addresses of the corresponding Ethernet ports to be in different subnets.
If you're using MATLAB R2020b or later, these Ethernet ports should also be configured using the Speedgoat Ethernet Configuration tool before you deploy your model.
I hope this is helpful!
Dimitri
12 Kommentare
Walter Roberson
am 15 Aug. 2022
Sorry, I do not have anything resembling appropriate hardware to test this with, and I do not have access to the source code.
Siehe auch
Kategorien
Mehr zu Multicore Processor Targets finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!