Basic dsp UDP question

7 ビュー (過去 30 日間)
Matthew 2012 年 6 月 20 日
コメント済み: Oscar Parra 2021 年 4 月 30 日
I am new to networking. I want to communicate between 2 computers using UDP. I've been searching through Matlab's help section and stumbled across the dsp.UDPSender/Receiver functions. I am still a bit unsure as how these work.
From my understanding, this is the basic idea of how dsp.UDP works
Sending computer:
% reciever.IP.Address is the IP of the dsp.UDPReceiver
Step(Sender, Var)
Receiving computer
% while sender is sending info
Receiver= dsp.UDPReceiver
Is this set up correct? I am unsure how the step() command works. I understand it transmits data, but I don’t know when to tell the Receiver to step(). Do I run both of these at the same time? Is there a way I can make sure that data is actually being sent?
Thanks in advance,
  4 件のコメント
Oscar Parra
Oscar Parra 2021 年 4 月 30 日
hello, did you manage to make the real time system using udp? i'm doing a work on this but i can't connect. could you give me a hand with this, thank you in advance.


回答 (1 件)

Matthew 2012 年 7 月 13 日
The problem was I needed to run Matlab as an administrator. Also, the sending computer most use the recieving computer's IP and vice versa for communications to happen.
  1 件のコメント
Walter Roberson
Walter Roberson 2012 年 7 月 13 日
Thank you for the update!



Find more on Instrument Connection and Communication 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!

Translated by