Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: sending and receiving data in matlab using UDP object
Replies: 33   Last Post: Apr 9, 2014 11:19 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
pckong

Posts: 6
From: melbourne
Registered: 3/16/08
sending and receiving data in matlab using UDP object
Posted: Mar 16, 2008 12:59 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi all,

I am doing school project and am getting desperate at this moment. I hope in somewhere you will be able to give me some hints, as soon as possible.

Here is what I got. I need to send data from a PC to the other, they are both running matlab. The data transmission will be done with two sets of wireless network card.

I intended to set the data transmission done in a UDP object. Before I made the attempt, an ad-hoc network has been set up, and it is tested working. Here is some useful network information,
For PC1 (host) the IP address is 192.168.0.100 (not static IP)
For PC2 (client) the IP address is 192.168.0.223 (not static IP)

I made a simple test to try sending data with matlab via port 9090, here is what I did,
In PC1, I try to write an integer array to the client port
u=udp('192.168.0.223', 9090);
fopen(u)
fwrite(u, 1:10);
fclose(u)

In PC2, I try to read the integer array from its port
u=udp('192.168.0.223', 9090);
fopen(u)
A=fread(u, 10);
fclose(u)

But no matter how I try, I cannot retrieve the data. I cannot switch to do the whole network programming in Linux as it is too late for me, and I cannot do it in winsock either as I have written a whole bunch of other programs in matlab already.

Please help.

Yours Sincerely,

Peter


Date Subject Author
3/16/08
Read sending and receiving data in matlab using UDP object
pckong
3/17/08
Read Re: sending and receiving data in matlab using UDP object
Trent Jarvi
3/18/08
Read Re: sending and receiving data in matlab using UDP object
pckong
12/3/09
Read Re: sending and receiving data in matlab using UDP object
Anuradha
12/3/09
Read Re: sending and receiving data in matlab using UDP object
Anuradha
6/10/12
Read Re: sending and receiving data in matlab using UDP object
Abdul
6/10/12
Read Re: sending and receiving data in matlab using UDP object
Nasser Abbasi
6/10/12
Read Re: sending and receiving data in matlab using UDP object
Abdul
6/10/12
Read Re: sending and receiving data in matlab using UDP object
Abdul
3/19/08
Read is there a speed limite for UDP local port binding?
pckong
3/19/08
Read Re: is there a speed limite for UDP local port binding?
Trent Jarvi
3/20/08
Read Re: is there a speed limite for UDP local port binding?
Walter Roberson
4/9/14
Read Re: sending and receiving data in matlab using UDP object
Umair
3/20/08
Read Everything Looks fine now
pckong
3/21/08
Read Using Fread function and DatagramTerminateMode to take data from buffer
pckong
7/17/08
Read Re: Using Fread function and DatagramTerminateMode to take data from
Shanker Keshavdas
7/17/08
Read Re: Using Fread function and DatagramTerminateMode to take data from
K
7/18/08
Read Re: Using Fread function and DatagramTerminateMode to take data from
Shanker Keshavdas
7/18/08
Read Re: Using Fread function and DatagramTerminateMode to take data from
Shanker Keshavdas
7/19/08
Read Re: Using Fread function and DatagramTerminateMode to take data from
K
7/22/08
Read Re: Using Fread function and DatagramTerminateMode to take data from
Shanker Keshavdas
5/6/09
Read Re: receiving a file via udp
jerry adolpher
5/15/09
Read Re: receiving a file via udp
Ankit Desai
4/11/13
Read Re: receiving a file via udp
leo
7/17/08
Read Re: Using Fread function and DatagramTerminateMode to take data from
K
2/27/10
Read Re: sending and receiving data in matlab using UDP object
Noman
2/27/10
Read Re: sending and receiving data in matlab using UDP object
Noman
3/21/10
Read Re: sending and receiving data in matlab using UDP object
cpp.matlab@gmail.com
11/23/10
Read Re: sending and receiving data in matlab using UDP object
Nam Tran
11/23/10
Read Re: sending and receiving data in matlab using UDP object
Noman
11/25/10
Read Re: sending and receiving data in matlab using UDP object
Nam Tran
11/26/10
Read Re: sending and receiving data in matlab using UDP object
Noman
11/26/10
Read Re: sending and receiving data in matlab using UDP object
Nam Tran
11/28/10
Read Re: sending and receiving data in matlab using UDP object
Noman

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.