LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP connection is not usable after I close a sub-panel and re-open again

I added a menu, "TCP_IF"  to my main panel. Whenever a user select this "TCP_IF" menu, opens a  panel to allow type IP address and connect to remote TCP server,a dn send messages once a while. 

What  I want to do is, if there is a connection established already and user closed the Panel, keep the TCP connection open. When user select the menu again, it will open up the panel again and continue...   Somehow, when the panel is opened again, even though the TCP connection handle is valid ( it has the same value as before the panel is closed), I can not use the TCP connection to send message out.  What I have to do is to close the connection using the TCP connection handler, and open a TCP connection again ( the TCP connection handle has a new number )

 

I do not know why?

 

Many Thanks,

Qing

0 Kudos
Message 1 of 2
(2,074 Views)

Hi qing22,

 

Can you post your code or a simplified version of it? This will help clarify a bit more what you're talking about here.

 

Best,

Claire C.
AppSW Staff Product Support Engineer
National Instruments
CLD|CTD
0 Kudos
Message 2 of 2
(1,956 Views)