08-27-2015 03:45 AM
Hi everyone,
I'm trying to communicate wirelessly between two LabVIEW nodes(a win 7 pc and a win xp tablet).
I've been successful in opening an Adhoc connection between the two of them. I know because I'm able to ping the two of them.
I run the LabVIEW example "Simple TCP - Server.vi" on the pc and the LabVIEW example "Simple TCP - Client.vi" on the tablet but my client vi keeps giving me this error :
"LabVIEW: Serial port receive buffer overflow.
=================================
LabVIEW: The network connection was refused by the server."
My question is what could I be missing?
Do I need to change the port numbers in the original example vis?
Do I need to edit these examples in any way after establishment of connection and before commencing my VIs?
Urgent help required. Thanks in advance!
08-27-2015 05:18 AM
Update :
Ok so I changed the address of "Simple TCP - Client.vi" to the ip address of the server and I changed the port number to the one that I found was assigned to that ip address of server (which I found using "netstat -a").
Now I'm getting the following error on both my server and client:
"LabVIEW: The network operation exceeded the user-specified or system time limit."
08-27-2015 06:08 AM
The port you use on the Client should be whatever is specified as the listen port on the Server VI.
If you can ping between the PCs, then I suspect that this is a firewall issue.
08-27-2015 06:12 AM
08-27-2015 06:19 AM
Configure your firewall (on the server) to allow incoming connections on that specific port. Or try disabling it.
08-27-2015 06:25 AM
08-27-2015 10:58 AM
It is extremely difficult to guess what is wrong with your code (or to confirm that there is nothing wrong with your code) without seeing your code, and potentially testing it. To do this, you need to post your code. Please, only post code that we can immediately examine and edit (and run) with LabVIEW -- the easiest way to do this is to attach the actual VI (or a compressed folder of the VIs you are using), though you can also attach a Snippet if it shows enough of your code to allow us to make reasonable suggestions.
Bob Schor
08-27-2015 11:06 AM - edited 08-27-2015 11:07 AM
From what he says in the first post, I think he's using the TCP Client/Server example built into LabVIEW?
I'm still 90% sure this is a network (or firewall) configuration issue and has nothing to do with LabVIEW but have you:
1) Made sure you are running the server VI before running the client VI
2) Tried changing the port to something different
3) Run the server and client VI on the same PC to see if that works?
If you can post some screenshots showing the IP configuration on each PC and the configuration of the Server and Client VI on each PC - that might help to make sure you have the right ports/IP addresses configured on each machine.
08-27-2015 11:08 AM
Fair enough.
BS
08-27-2015 11:26 AM
Hey Sam_Sharp! I'm on it give me 5 minutes I'll attach the whole process in snippets.
1. Yes I do run the client VI AFTER I run the server VI.
2. When I change the port number on the client VI it gives me this error again:
"LabVIEW: Serial port receive buffer overflow.
=================================
LabVIEW: The network connection was refused by the server."
3. I ran the two VIs on both of them (tablet and pc). Worked fine.