From: Rohini on
Hello all

I am using instrument control toolbox for Ethernet interface to matlab.I want to transfer image in .bmp format using the same?
Is it possible?
How can i do it?

please help me

From: Walter Roberson on
Rohini wrote:

> I am using instrument control toolbox for Ethernet interface to matlab.I
> want to transfer image in .bmp format using the same?
> Is it possible?

No inherent reason why not.

> How can i do it?

fopen() the file for read access, fread() the file as uint8, fclose()
it, fwrite() it to the other end.

Note: it is not possible to use TCP if you have Matlab at both ends, but
you can use tcp to a non-Matlab server, or you can use UDP to connect to
Matlab systems, provided that you bind the local port.
From: Rohini on
Walter Roberson <roberson(a)hushmail.com> wrote in message <p8%Mn.35548$rU6.10502(a)newsfe10.iad>...
> Rohini wrote:
>
> > I am using instrument control toolbox for Ethernet interface to matlab.I
> > want to transfer image in .bmp format using the same?
> > Is it possible?
>
> No inherent reason why not.
>
> > How can i do it?
>
> fopen() the file for read access, fread() the file as uint8, fclose()
> it, fwrite() it to the other end.
>
> Note: it is not possible to use TCP if you have Matlab at both ends, but
> you can use tcp to a non-Matlab server, or you can use UDP to connect to
> Matlab systems, provided that you bind the local port.

ok thanks Walter.I want to transfer the image between two pc so i can have matlab at both ends right now but later on i want to replace the other pc with a hardware having Ethernet interface to it.So with your functions i will try out for communication between two pc's now
From: Rohini on
"Rohini " <rohini.patil(a)waveletgroup.com> wrote in message <huhqsm$4t8$1(a)fred.mathworks.com>...
> Walter Roberson <roberson(a)hushmail.com> wrote in message <p8%Mn.35548$rU6.10502(a)newsfe10.iad>...
> > Rohini wrote:
> >
> > > I am using instrument control toolbox for Ethernet interface to matlab.I
> > > want to transfer image in .bmp format using the same?
> > > Is it possible?
> >
> > No inherent reason why not.
> >
> > > How can i do it?
> >
> > fopen() the file for read access, fread() the file as uint8, fclose()
> > it, fwrite() it to the other end.
> >
> > Note: it is not possible to use TCP if you have Matlab at both ends, but
> > you can use tcp to a non-Matlab server, or you can use UDP to connect to
> > Matlab systems, provided that you bind the local port.
>
> ok thanks Walter.I want to transfer the image between two pc so i can have matlab at both ends right now but later on i want to replace the other pc with a hardware having Ethernet interface to it.So with your functions i will try out for communication between two pc's now

Hello Walter
Thank you very much for your help
i could read and write image file but now i want to transmit image file over Ethernet.Can i do with echo server implemented?
will you pl help me?
Your help is doing great for me.
thanks in advance
hope to see your reply soon.
From: Walter Roberson on
Rohini wrote:

> Thank you very much for your help
> i could read and write image file but now i want to transmit image file
> over Ethernet.Can i do with echo server implemented?

I don't know about the echo server.

You may wish to use the Matlab File Exchange IP toolbox,
http://www.mathworks.com/matlabcentral/fileexchange/345-tcpudpip-toolbox-2-0-6