05-01-2019 02:49 PM
I have setup a server using RegisterTCPServerEx on IP Address 192.169.0.250 Port 50100. I connect a client at 192.169.0.1 to it, I get data back and forth like it should be.
I have a second network at IP Address 213.19.59.1 that I am communicating with a cRIO at 213.19.59.2 using Network variables. This also works the way I want it to.
However, when I combine the two programs into one, the TCPServer callback sees the event TCP_DATAREADY whenever a network subscriber variable is changed.
I thought that the TCPServer would only be listening to data from it's IPAddress and Port. Getting the network variable data messes up the parsing the of the client data. Is there a way to isolated the two networks.
05-03-2019 04:01 PM
Hi
Take a look at this document:
Building Networked Applications with the NI LabWindows™/CVI™ TCP Support Library
http://www.ni.com/product-documentation/3067/en/#toc6
It looks like sections 6, 7 and 8 could be useful for you application.
05-06-2019 08:53 AM
Christopher,
Thanks, I used this document when I created my server. I use the RegisterTCPServerEx mentioned in Section 7. When I do a route command from the command line, I don't see any conflict between the 192 and 213 routes.
Paul