キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ1/3
3,034件の閲覧回数
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 件の賞賛
メッセージ2/3
3,025件の閲覧回数
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 件の賞賛
メッセージ3/3
3,023件の閲覧回数