TCP/IP Error Codes and Related Time-out Issues in LabVIEWPrimary Software: LabVIEW Development Systems>>LabVIEW Full Development SystemPrimary Software Version: 7.1 Primary Software Fixed Version: N/A Secondary Software: LabVIEW Modules>>LabVIEW Real-Time Module
Problem: I am trying to communicate between two computers using the TCP/IP VIs in LabVIEW. I usually am able to communicate successfully between the computers, but occasionally I receive a TCP/IP error. There are several different errors that come up depending on the situation, and I am not sure what the cause is or how to correct the problem since it does not occur every time I run my VI. Where can I find more information on the TCP/IP errors generated by LabVIEW? Solution: TCP/IP communication errors most often are caused by timeout conditions in either the LabVIEW TCP/IP VIs or at the operating system level. If you are sure that the network cable is properly connected to each system, and you otherwise can communicate between the computers (via pinging each system's IP address, for instance), a timeout condition of some type is likely the cause of the errors. The particular error code and symptoms associated with the error depend on whether a LabVIEW operation timed-out first or if an error is generated first by the operating system. Refer to the Networking Error Codes topic in the LabVIEW Help (linked below) for a complete list of the LabVIEW networking error codes. There are two typical error codes in cases where TCP/IP communication fails as a result of a timeout condition:
If you are using the LabVIEW Real-Time (RT) Module along with TCP communication to communicate between an embedded RT VI and a host VI on a Windows computer, other errors in addition to the ones listed above might occur. On an RT system, error 66 is typically replaced by error 64. LabVIEW still returns error 56 when a network response is not received within the user-specified time limit. In LabVIEW 8.0 or later, refer to the Fundamentals»Using LabVIEW with TCP/IP and UDP book in the LabVIEW Help (linked below) for more information. In LabVIEW 7.1 or earlier, refer to the Using LabVIEW with TCP/IP and UDP Application Note by selecting Help»Search the LabVIEW Bookshelf in LabVIEW for more information. Also, refer to the KnowledgeBase documents linked below for more information about TCP/IP errors in relation to LabVIEW Real-Time Module programming. Related Links: LabVIEW Help: Networking Error Codes LabVIEW Help: Using LabVIEW with TCP/IP and UDP Developer Zone Tutorial: Basic TCP/IP Communication in LabVIEW Developer Zone Tutorial: Using the LabVIEW Real-Time Communication Wizard KnowledgeBase 2CND08Z8: Error 64 When the Client Closes My TCP/IP Connection to an RT Engine KnowledgeBase 2M59E6T4: TCP Server Running on RT Target Returns Error 61 When Connection is Closed by TCP Client on Host KnowledgeBase 2X8GD12P: Error 54 in TCP Connection.vi while using FTP VI’s Attachments:
Report Date: 03/01/2004 Last Updated: 09/26/2008 Document ID: 370GCFBS |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
