LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

communication between two computer by using ethernet RJ 45 cable

hello,

I am new to labview.My current project is to let 2 PC to communicate with each other. PC 1 is to transmit data while the PC 2 will receive the data that PC 1 transmit. But i must use ethernet(LAN)[ RJ-45 ]as the communicating medium.Can anyone provide with any ideas or solutions in LABVIEW?Thank You.
0 Kudos
Message 1 of 4
(4,503 Views)
LabVIEW has TPC functions built-in. You should be able to do what you need using these.

Look on the Functions palette under "Communication" then "TCP".

There is also some improved TCP VIs written by Jack Hamilton. You can download these from his website.

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 2 of 4
(4,502 Views)
Hello,
how do I can check my laptop(windows XP) TCP/IP port number?
thank u
0 Kudos
Message 3 of 4
(4,493 Views)
There are 65535 ports your PC can listen on. The only important thing is that the first PC listens on the same port the other PC is trying to connect ("Port" and "Remote Port" in the TCP VIs). Some of these are reserved (For example 1-1024 are reserved for the system, 80 is the http port, 3363 is used by LabVIEW). Select a port and see if it works (personally I use 6340). Make sure your computers can communicate with a ping command, and that the port is allowed in the firewall.
Another option for you would be to use Datasocket. That way you don't have to bother with managing the communication and conversion code. Just search for it on the site.

___________________
Try to take over the world!
Message 4 of 4
(4,477 Views)