I am working on a project and want to use UDP protocol to transfer data from one simulink model to another. For now I want to try to see how to transfer a constant number using udp sender/receiver. Can anyone guide me through the steps needed to achieve this either on the same computer or on two different computers? I appreciate if one can describe for me the step by step procedure to transfer data using udp from one simulink model to another either on the same computer or two different computer.

 Akzeptierte Antwort

Suze Zhang
Suze Zhang am 9 Okt. 2017
Bearbeitet: Stefanie Schwarz am 26 Mär. 2025

0 Stimmen

Hi Kidus,
For transferring data over the UDP network using Simulink, it can be done on the same computer (even the same Simulink model) or on different machines.
Here is a link to an example on transferring data on the same computer:

3 Kommentare

Kidus Guye
Kidus Guye am 10 Okt. 2017
Hi Suze, I was trying the basic udp communication and try to send a sine wave through udp (just to see if it works) and I got the following error "The specified amount of data was not returned within the Timeout period. Please ensure that data is being sent to the specified port or specify a greater timeout value."
Kidus Guye
Kidus Guye am 11 Okt. 2017
Thank you I was able to figure out.
Rashi Mehrotra
Rashi Mehrotra am 9 Aug. 2021
Kidus, how did you figure out, I am getting the same error.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by