Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 68930

Socket connection - Read error when data not avalible

$
0
0

Hi guys, 

 

I need your opinion in relation to reading some data over a socket connection. 

 

So, I have a server running on the local host and I have created a client with Labview to communicate with this server. I can read/write to and from server under normal conditions. But I'm facing an error when I try to read when the data is not available from server. TCP-Read function generates an error at this instance. Is it possible to check first before trying to read and read only if data available ? What is the best way to handle this situation ?

 

Thanks in advance. 


Viewing all articles
Browse latest Browse all 68930

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>