LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Download file from FTP : Error 1059 (Open File)

I need to download a binary file from cRIO FTP but I get an error 1059 Open file. The extension of the files to be downloaded is .dat .
Attached is a screen shot of my code.
 
Any ideas how I can solve my problem?
 
Thanks.
 
0 Kudos
Message 1 of 7
(4,762 Views)
1059 error indicates an unexpected file type.  Most .dat files are text files.  Try setting the binary terminal on the FPT [RETR].vi to be false. 
Message 2 of 7
(4,749 Views)

thanks centerbolt for your reply,

I tryed this issue but I still have a same error. 

0 Kudos
Message 3 of 7
(4,731 Views)

Can you post your vi and an example .dat file?   I'll try this with my cFP.

 

0 Kudos
Message 4 of 7
(4,718 Views)
Hi centerbolt ,
 
Here attached is the document you requested.
 
Best regards.
0 Kudos
Message 5 of 7
(4,712 Views)
"local path" constant needs to include the target file name.  Won't work without it.
0 Kudos
Message 6 of 7
(4,703 Views)

Hi centerbolt,

Thank you, this solved the problem.

Best Regards.

0 Kudos
Message 7 of 7
(4,698 Views)