Search code examples
tcpethernetlabviewpharlap

Using the second Ethernet Port for TCP on a NI PXI with LABVIEW


I'm using a PXI 8109 running Pharlap OS.

I'm trying to use the second ethernet interface of my PXI to send UDP and TCP packets.

Here the configuration of my two ethernet interfaces:

eth0 (primary):
IP : 10.0.0.3
subnet mask : 255.0.0.0


eth1 :
IP : 192.168.10.9
subnet mask : 255.255.255.0

For UDP, I have no problems, packets are sent to the second interface as I want. I think it work because there is a "net address" input on the "UDP Open" VI so the system can choose the right interface.

For TCP, I use the "TCP Open connection" VI but there is no this kind of input. And it is not working : I assume the system is trying to use the primary interface but it can't route packets...

For information, my two networks are physically independant.

Can you help me finding out what's going on ? Is it possible to use TCP on the second ethernet interface ?


Solution

  • I finally solved my problem. This was not related to the TCP connection ...

    I was using a property node "Value (signaling)" to trigger the TCP connection and it seems that this is not supported on RT Targets. This is why it was working on localhost.

    Thanks for the help anyway ;)