Tags: address, ipprotocol, matlab, network, port, programming, receiver, structure, tcp

How to send data using TCP/IP

On Programmer » Matlab

2,497 words with 3 Comments; publish: Mon, 12 May 2008 10:48:00 GMT; (20078.13, « »)

Hi,

I need to send a data structure through the network using the TCP/IP

protocol.

The port is the 5001 and the IP address of the receiver is the

192.168.0.1.

I want to send, in one shot, a variable that is composeb by these

fields:

variable.a (float value)

variable.b (float value)

variable.c (int16 value)

variable.d (float value)

How can do this?

Best Regards,

Luca

All Comments

Leave a comment...

  • 3 Comments
    • Someone can help me?

      Regards,

      Luca

      Luca wrote:

      >

      > Hi,

      > I need to send a data structure through the network using the

      > TCP/IP

      > protocol.

      > The port is the 5001 and the IP address of the receiver is the

      > 192.168.0.1.

      > I want to send, in one shot, a variable that is composeb by these

      > fields:

      > variable.a (float value)

      > variable.b (float value)

      > variable.c (int16 value)

      > variable.d (float value)

      > How can do this?

      > Best Regards,

      > Luca

      #1; Mon, 12 May 2008 10:49:00 GMT
    • Luca,

      MATLAB only supports TCP/IP communication through the Instrument

      Control Toolbox. Other solutions are not supported but may or may

      not work.

      MATLAB TCP/IP overview page:

      <http://www.mathworks.com/tcpip>

      Technical article written by Edward J. Mayhew at George Mason

      University using MATLAB to remotely communicate with other

      applications using TCP/IP:

      <http://www.mathworks.com/company/ne...uly/airsim.html>

      Downloadable MATLAB TCP/IP code example:

      <[url]http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=11802[/u

      rl]>

      Robert

      #3; Mon, 12 May 2008 10:51:00 GMT