simulink: how to send/receive packet data over udp

6 views (last 30 days)
I want to simulate sending and receiving packets over UDP protocol using Matlab Simulink blocks. Using the Real-Time Simulink blocks, I could only send packet data by "UDP Send" block but nothing was received by "UDP Receive" block. I was wondering if anyone could help me with this problem. Can anyone help to do this procedure?

Answers (1)

Dimitri MANKOV
Dimitri MANKOV on 3 Jun 2022
Hi Hosein,
The UDP blocks from the Simulink Real-Time library are mostly intended to be used in conjunction with a target machine. In case you don't have a target machine, I suggest using the UDP blocks from the Instrument Control Toolbox instead, as they are more generic.
I hope this is helpful!

Community Treasure Hunt

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

Start Hunting!

Translated by