LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Intermittent error 66 occurred at TCP Write

I have an intermittent “error 66 occurred at TCP Write in NI_InternetTK_FTP_Vis.lvlib:FTP Command.vi:1->NI_InternetTK_FTP_Vis.lvlib:FTP [QUIT].vi-> NI_InternetTK_FTP_Vis.lvlib:FTP Close Session.vi.”

 

This is an intermittent error and we are using Microsoft 2003 server for our FTP.  This is the first time we have used a FTP to save data.  It seems to works ok writing and closing the file but when I just read the file and then try to close it is when I get the error.

 

Any help will be greatly appreciated.

0 Kudos
Message 1 of 4
(5,391 Views)

Hi rpdavis,

 

I have a couple of questions for you:

 

Are you seeing three separate errors  error 66 occurred at TCP Write in NI_InternetTK_FTP_Vis.lvlib:FTP Command.vi:1,  error 66 occurred at TCP Write in NI_InternetTK_FTP_Vis.lvlib:FTP [QUIT].vi and error 66 occurred at TCP Write NI_InternetTK_FTP_Vis.lvlib:FTP Close Session.vi?  or are you seeing the single lond error message?

 

What version of LabVIEW are you using?

 

What operating system are you using? 

 

How often are you getting this error?  Is it every time you just read and close or only sometimes?

Justin Parker
National Instruments
Product Support Engineer
0 Kudos
Message 2 of 4
(5,361 Views)

I am seeing only one error and here is what it says.

 

I'm use Labview 8.6 now but had the same error with 8.52.

 

My labview computer operating system is XP pro. The sever is MS 2003.

 

 I just ran a test and it ran 73 times before it erroredI put it in a while loop and let it runIt takes about 3 seconds to read the data, add a line of data then write the file back to the FTP siteThe error happens when I am closing the file using Labviews "ftp0.llb\FTP Close Session.vi".  Some times it returns the ereor TCP Read or TCP write.

 

 Is there an FTP sever you would recommend over Microsoft's?

0 Kudos
Message 3 of 4
(5,338 Views)

Hi rpdavis,

 

Error 66 is a very common TCP error that simply indicates that the connection has been closed by the peer because of a timeout. This may not indicate a problem with your program, just that you are closing the connection and the error is coming up.

 

How are you programming the application? If you are using LabVIEW to transfer files through FTP, there is a good example found in Help>>Find Examples...>>Search, enter TCP and open the FTP Browser example.

 

If this is not what you are trying to do, I am not sure what FTP server you are referring to. Windows Server 2003 is an operating system, but you can use Windows Explorer or Internet Explorer to open an FTP connection by typing ftp://<IP address> into the address bar.

 

Regards,

Stephen S.

National Instruments
Applications Engineering
0 Kudos
Message 4 of 4
(5,301 Views)