LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP Client

Hi Everybody

我有一个labview项目,需要通过TCP Open Connection连接两个产品,这两个产品拥有相同的IP地址及相同的服务器端口号(相同的产品),但是具有不同的无线SSID。

电脑有两张无线网卡,现在需要每张网卡连接一个产品,是否有办法进行区分连接,向A产品写入命令后,从A产品接收数据,向B产品写入命令后从B产品接收数据?

目前可实现单网卡和单产品正常通讯,但是TCP Open Connection.vi的Service Name和Service Port如果都相同的话,如何区分当前连接的是哪个产品?

以上,谢谢!

0 Kudos
Message 1 of 4
(1,066 Views)

Hello Sqqdjian,

 

Based on my understanding we should be able change the IP address of the target device, by which you can configure different address for different target device.

 

Check the specification of the target device.

 

 

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 4
(1,040 Views)

Hello Palanivel,

Thank you for your reply,

But the target device is DUTs(Device under test),we need to communicate with it to do test. We can't change its IP address

Is there a way to let me know which DUT is currently connected?

In other words, is there a way to make a TCP connection through the specified network card

Thank you so much.

0 Kudos
Message 3 of 4
(1,015 Views)

Hi,

 

There are ways to force routing over specific network adapters.

But using the same IP address twice on one computer for different connections !?!? I can't see that works.

 

Is it possible to add a router for one of the connected devices ? Than you can use different IP addresses without changing an IP address of the targets.

 

EDIT

With 'Netsh' you can force the connection to a specific adapter. But somewhere in the communication you will need the IP address.

 

Kees

0 Kudos
Message 4 of 4
(1,011 Views)