LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP Read Error -1

Hi
 
I encountered TCP Read  error code -1. What does it mean? The attached file is part of my program. The error at the first TCP Read for 2 bytes. No Data is read.
 
0 Kudos
Message 1 of 3
(3,255 Views)
Error 1 means invalid input. In the case of TCP Read function, this would only be the connection refnum.
Either it was closed, or it never existed.
Try having a look at the TCP examples in the example finder (Help>>Find Examples).

You don't show how you handle your errors, but in general, to see what an error means, you can use the General Error Handler VI or open the Help>>Explain Error dialog.

To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).


___________________
Try to take over the world!
0 Kudos
Message 2 of 3
(3,219 Views)

From that image alone, it is impossible to find the problem. Too much happens outside the area shown.

Can you attach some real code instead?

How many connections have you openend? What is the range of the index variable? Do you know which instance of TCP read generated the error?

Message Edited by altenbach on 04-21-2007 01:36 PM

0 Kudos
Message 3 of 3
(3,217 Views)