LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using ethernet port

I have a test application where I need to communicate to a UUT using TCP/IP
protocol.  My test station has two ethernet interfaces, one dedicated to a
network connection and one dedicated to UUT test.  How do I select which
ethernet interface to use from within LabView?
 
In addition, I need to change the IP address of the ethernet port from within
LabView, since different UUTs require the test station to use different IP
addresses.  How do I go about doing this?
 
- Andy
0 Kudos
Message 1 of 3
(2,471 Views)
Hello,

You cannot select an ethernet port in LabVIEW. You can alter your route table so that communication ment for the UUT is send to the UUT's port and all other traffic via the other port. I cannot help you with the definition of your route table however.

For programmatically changing the IP address of the UUT's ethernet port you will have to use either command line tools or the windows api.

Kind regards,

André
Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 3
(2,462 Views)
I had a similar application a while ago. The operating system (in my case XP), normally decides whihc port to use automatically.

If you want to override this, you need to change the priority of the card in the routing table (the metric parameter decides priority, closer to 1 is higher priority).

Have a quick scan on the internet to get the full run down on routing tables.

Here is a screen shot of my code for changing priority.

ssk
0 Kudos
Message 3 of 3
(2,460 Views)