LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error in calling m_DataConn.Connect, err=19

Hello all,

 

I'm using the internet toolkit to copy the startup.rtexe to a local folder. I'm using FTP Retrieve Multiple.vi, it always outputs error on the VI (Error 56 occurred at TCP Wait On Listener in FTP Open Data Connection.vi->FTP Data Receive.vi->FTP [RETR].vi->FTP Retrieve Multiple.vi->Updater.vi.

 

On top of this error in the rt interface it outputs another error (error in calling m_DataConn.Connect, err=19).

 

I can open the connection with no problem, rename files. I just can´t copy or write files!!

 

Thanks,

 

Adam

 

 

0 Kudos
Message 1 of 4
(3,921 Views)

Hi,

 

You want to upload file by TCP on RT target, but TCP/IP is not deterministic, so you have an timeout error.

 

Have a look on this :TCP/IP Communication Error -56 When Communicating to an RT System

 

Regards,

Message 2 of 4
(3,905 Views)

Hello,

 

I was trying to copy files to the RT system using the FTP library from NI. It kept giving me the errors I refered.

 

I fixed this using the passive and binary mode in FTP.

 

tks,

 

Adam

 

 

Message 3 of 4
(3,897 Views)

Hi Adam,

 

Thanks! You just solved a problem I had spent hours trying to figure out in an application which did not work in LV2017 but did in LV2011.

 

Changing to passive and binary mode also helped speed up the time of operation TENFOLD in 2017 over its working 2011 counterpart.

0 Kudos
Message 4 of 4
(2,631 Views)