LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using TCP/IP VIs with a crossover cable.

Solved!
Go to solution

Hi,

 

I am very new with network programming.  I am trying to send and receive messages via the Ethernet port using Labview for a future application.  I have a crossover Ethernet cable which connects 2 PCs, one of which has Labview installed.  I am trying to ping the other computer using TCP open/listen but I don't know what to put in for the remote port input.  Thanks for your help.

 

SB

0 Kudos
Message 1 of 5
(4,298 Views)
Solution
Accepted by topic author sangbui_palpro

I recommend you look at the raw socket ping library posted here

 

http://forums.ni.com/ni/board/message?board.id=170&message.id=70801

========================
=== Engineer Ambiguously ===
========================
Message 2 of 5
(4,294 Views)

You cannot send ping packets over a TCP/P connection. Ping packets are part of the ICMP protocol which is completely separate from TCP. ICMP is a peer protocol to TCP. Take a look at the ping library in the earlier post to accomplish what you want.

 

The use of the crossover cable is transparent to any networking protocols. It is simply the physical interconnect and wiring. From the application's perspective it doesn't matter if you use a crossover or regular cable. It does however matter in terms of the physical connection and teh correct cable must be used to support your environment.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Message 3 of 5
(4,268 Views)

Allmost all modern (last 5 years) network ports on computers will figure out themselves if you need a cross-over cable or not.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 4 of 5
(4,251 Views)

Hi guys,

 

Thanks for the help.  Got it to work after assigning static IP addresses for both computers and disabling firewall.  Moving to HTTP and HFTP file transfer now... I am excited!

0 Kudos
Message 5 of 5
(4,203 Views)