NI Home > Community > NI Discussion Forums

LabVIEW

Showing results for 
Search instead for 
Do you mean 
Reply
Member
ank_gup
Posts: 6
0 Kudos

using tcp/ip to communicate through a wireless network

Hi !

I have established a wireless network between two computers using two usb wireless adapters and I want to send messages between the two computers using labview. From what I have been told , tcp/ip vi's should do. But i have tried them and they are not working. Can anybody please tell me how should i go about it? ( I used simple data server and simple data client vi's from the examples in Labview)
Plz help
Knight of NI
Dennis_Knutson
Posts: 34,653
0 Kudos

Re: using tcp/ip to communicate through a wireless network

When you say that it doesn't work, do you get any error codes generated? Can you successfully ping from one pc to the other?

Member
ank_gup
Posts: 6
0 Kudos

Re: using tcp/ip to communicate through a wireless network

I have turned off the firewall and I also replaced the 'localhost' string with the IP of the server in the example but it gave generic error in tcp open connection. I also entered the name of the server computer in place of localhost and then it didn't show any error but connection just timed out.
Basically I haven't been able to ping from one pc to another. Can you pls tell me a way to ping from one pc to another or to find out whether labview is detecting the wireless network or not?

Knight of NI
altenbach
Posts: 27,972

Re: using tcp/ip to communicate through a wireless network

Does the wireless control panel report that a connection is established?

Go to each computer, open an command window, type "ipconfig /all" and show us the output for both machines.


LabVIEW Champion . Do more with less code and in less time .

Trusted Enthusiast
rolfk
Posts: 4,785

Re: using tcp/ip to communicate through a wireless network

[ Edited ]


ank_gup wrote:
I have turned off the firewall and I also replaced the 'localhost' string with the IP of the server in the example but it gave generic error in tcp open connection. I also entered the name of the server computer in place of localhost and then it didn't show any error but connection just timed out.
Basically I haven't been able to ping from one pc to another. Can you pls tell me a way to ping from one pc to another or to find out whether labview is detecting the wireless network or not?



Well if you can't ping then the network setup itself is seriously misconfigured. ping tests about the lowest level of IP network communication and if that doesn't work you should first try to find the configuration problem before even attempting to debug TCP/IP or UDP or other higher level protocols.

LabVIEW does not detect any network interface at all. It just uses the system network services and they need to be setup correctly in order for network traffic to work at all. Since your firewall is already disabled I would suspect network address configuration problems. Without specific routers the IP addresses of both computers need to be in the same subnet and both computers need to be configured to use the same subnet range too.

Rolf Kalbermatter

Message Edited by rolfk on 01-27-2007 08:31 PM

Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions
LabVIEW ArchitectLabVIEW ChampionLabVIEW Instructor
Member
ank_gup
Posts: 6
0 Kudos

Re: using tcp/ip to communicate through a wireless network

thanks for all the replies . I would also like to tell that I have been able to create a network between two pcs using those wi-fi adapters and has also sent few files from one pc to another but i haven't been able to do the same using labview.
Trusted Enthusiast
rolfk
Posts: 4,785
0 Kudos

Re: using tcp/ip to communicate through a wireless network

Then try out one of the TCP/IP examples. First run both client and server on your local computer then over the network. Looking at them will also show you how TCP/IP in LabVIEW can be used.
 
And if you want to transfer files in LabVIEW between computers you will have to do some work. TCP/IP itself is not a file transfer protocol such as FTP but the base of such protocols.
 
The Internet Toolkit does come with an FTP VI library however.
 
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions
LabVIEW ArchitectLabVIEW ChampionLabVIEW Instructor
Member
ank_gup
Posts: 6
0 Kudos

Re: using tcp/ip to communicate through a wireless network

Thanks for the support guys........ its working now........ thanks once again