LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW communication on Ad hoc wireless connection

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!

0 Kudos
Message 1 of 13
(4,654 Views)

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."

0 Kudos
Message 2 of 13
(4,631 Views)

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.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 3 of 13
(4,622 Views)
Yes I found the port number to be 139 on my server pc so I used the same port number in the Client Vi.

What do I need to do if it is a Firewall issue?
0 Kudos
Message 4 of 13
(4,617 Views)

Configure your firewall (on the server) to allow incoming connections on that specific port. Or try disabling it.

 

 


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 5 of 13
(4,612 Views)
Disabled firewall. Still getting the same error
0 Kudos
Message 6 of 13
(4,605 Views)

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

0 Kudos
Message 7 of 13
(4,570 Views)

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.

 


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 8 of 13
(4,563 Views)

Fair enough.

 

BS

0 Kudos
Message 9 of 13
(4,557 Views)

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.

0 Kudos
Message 10 of 13
(4,547 Views)