LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP/IP

This is what I got...

Error 63 occurred at TCP Open Connection in Open_To_Try_2.vi

Possible reason(s):

LabVIEW: Serial port receive buffer overflow.
---
LabVIEW: The network connection was refused by the server.
0 Kudos
Message 11 of 22
(2,486 Views)
does this work with both vi's on the same machine ??
0 Kudos
Message 12 of 22
(2,337 Views)
Let me back it up little bit with my application.

I want to create a TCP/IP connection by using 2 different PC with 2 different IP address. On one side I want to create a TCP OPEN, and the other side I want "LISTEN". I just want to see how does LabView do it. So I have set up a 2 VI's on each machine. One with Open TCP/IP and the other side Listen TCP/IP. Is the way should I do it?
0 Kudos
Message 13 of 22
(2,337 Views)
what i do on my server is save the connection id(s) from the tcp listen and use them to communicate between the 2 programs on seperate PC's
0 Kudos
Message 14 of 22
(2,337 Views)
Ok, I think I am not making any connection here. Can you write up a example with a TCP Open and TCP Listen and send a VI file to me? I have been looking at the Simple Data Server.vi but I do not think I need a client in my application?

Thanks...
0 Kudos
Message 15 of 22
(2,337 Views)
what version of LV are you using ?
0 Kudos
Message 16 of 22
(2,337 Views)
7.0 or 7Express.
0 Kudos
Message 17 of 22
(2,337 Views)
ok good.... here is somethign i came up with real quick... it isnt pretty but it should get you going i hope...

Dan
Download All
0 Kudos
Message 18 of 22
(2,338 Views)
Thanks dan,
I'll try and see how it works-out.
0 Kudos
Message 19 of 22
(2,337 Views)
Sys_Eng wrote:

> Ok, I think I am not making any connection here. Can you write up a
> example with a TCP Open and TCP Listen and send a VI file to me? I
> have been looking at the Simple Data Server.vi but I do not think I
> need a client in my application?

Well, in fact you do. The Listen function is in the application which is
the server and the TCP Open function is in the application which is the
client. That is how TCP/IP works with a client on one side and a server
on the other.

I do consider the Simple Data Server.vi/Client.vi a good example of how
to do TCP/IP communication. Although I think once you start to do real
client/server comm
unication you will be better of implementing something
along the lines of the Date Server/Client.vi and Data Server/Client.vi.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 20 of 22
(2,337 Views)