Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to 'listen' in matlab by tcp ip

707 views
Skip to first unread message

dong doudou

unread,
Jun 19, 2008, 9:56:02 AM6/19/08
to
I have a a client that sends data every 1 second.I want to
monitor this data uing matlab and TCP/IP .
But unfortunetly Matlab doesn't have "listen"
function.so MATLAB can't play the rule of a server
What can I do for this problem?
All suggestion welcomed!!!!!!

hassan.slim

unread,
Jun 19, 2008, 10:18:58 AM6/19/08
to

Matlab can't act as a server in TCP/IP connection, it only acts as a
client. but u can use a toolbox provided by Matlab central file
exchange under the name of 'TCP/UDP/IP Toolbox 2.0.6'.

u can find it in this link.
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=345&objectType=file

It works fine for my case
I hope it will help u!!

Regards,
Has

dong doudou

unread,
Jun 19, 2008, 10:37:01 AM6/19/08
to
thanks very much and for your patience, i will try it.


"hassan.slim" <skymo...@googlemail.com> wrote in message
<c7c8563c-0f1c-44d1-ba16-
f21ddb...@m3g2000hsc.googlegroups.com>...

Dave Bell

unread,
Jun 19, 2008, 3:36:06 PM6/19/08
to
We needed server capability, and were also surprised to find it was
unavailable.
(This was for a Matlab-to-Matlab connections on separate machines in a
cluster.)
I did try a couple of approaches from the file exchange and in Java, but
neither seemed to be a complete implementation for what we needed.
I finally ended up creating a "bent pipe" server in another program
(LabVIEW in this case), letting both Matlabs connect to separate ports
on the comm server, which would then pass data through.
Inelegant, but it worked...

Dave

Luke

unread,
Nov 6, 2008, 12:43:02 AM11/6/08
to
Dave Bell <db...@TheSPAMFREEBells.net> wrote in message <0zy6k.3661$cW3....@nlpi064.nbdc.sbc.com>...
what about echotcpip ? That starts a server in Matlab.

Ankit Desai

unread,
Nov 6, 2008, 4:29:01 PM11/6/08
to
"Luke " <now...@nowhere.com> wrote in message <geu056$p8o$1...@fred.mathworks.com>...

You can try udp for MATLAB to MATLAB communication.

A udp port binding will get data from one machine to other.

Create a udp object, on one machine, with remote port RXXX and local port LXXX and create another udp object, on second machine, with remote port LXXX and local port RXXX.

-Ankit

0 new messages