取消
顯示結果 
搜尋替代 
您的意思是: 

Listen to multiple TCP ports on exe

已解決!
前往解決方案

Hello,

 

I have multiple exe's that I want to read the front panel.  I found this knowledge article and it works very nicely.

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019LbZSAU&l=en-US

 

In the article you need to set the port in the ini file of the exe.  My question is is it possible to open multiple ports?

 

server.tcp.enabled=True
server.tcp.port=3364

I would like to specify more than 1 port.

 

Thanks
  

Dan Shangraw, P.E.


   

0 積分
1 條訊息(共 2 條)
3,039 檢視
解決方案
由主題作者所接受 ASTDan

The settings in your ini file are for the server side of the VI Server. There is only one port opened by the server (but it can handle multiple client requests in parallel). The Client side opens a connection to the server whenever you do an Open Application with a remote network machine name as identifier and the according port number as configured for that application instance in the ini file. If you have multiple LabVIEW executables on the same machine the configured port number in each ini file needs to be unique on that machine and depending which port number you pass to the Open Application node you will establish a connection with the according application instance.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
2 條訊息(共 2 條)
3,019 檢視