LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling Two Network Card by LabVIEW

Hi,


I'm using LabVIEW 8.5 and Windows XP.


I am intending to use LabVIEW to control a PC with 2 network cards in it.


I want to send TCP/IP packet out from one network card,
and receive the packet from another network card.


Do I have to change the confguration of the XP system?
How can I assign those two different cards to send and receive individually?


Can anyone tell or suggest what to do for me


Thank you very much~ ^^

0 Kudos
Message 1 of 3
(2,324 Views)

See this thread where Mark posts some good notes on networking.

 

You will have to adjust your masks so they can see each other.

 

Start by using "ping" to test connectivity.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 3
(2,318 Views)
You will not be able to directly prohibit the network cards from receiving or transmitting. You can define your network routes on the PC to route the traffic in the manner you want. Each network adapter will need to have its own IP address. NI's Internet Tool kit has a few issues, most notably the FTP VIs, when using multiple NICs. In addition, any DNS requests made will be routed to the primary network card. Windows determines which interface it thinks is the primary interface. From a code perspective using the native TCP or UDP VIs you will not have to do anything special.


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
0 Kudos
Message 3 of 3
(2,303 Views)