LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Listen to multiple TCP ports on exe

Solved!
Go to solution

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 Kudos
Message 1 of 2
(2,194 Views)
Solution
Accepted by 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
Message 2 of 2
(2,174 Views)