LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FTP transfer of file

I am trying to transfer file/s to an FTP server (with user, login etc.) However, I get the error (FTP code 550 - cannot create file). The error comes from built-in FTP_stor VI. I have attached a copy of my VI. I have checked that I have access to the server and can manually transfer files. Any advice is appreciated.
0 Kudos
Message 1 of 3
(3,927 Views)
I ran into this problem a while back and as I recall there are two modes of operation for FTP--active and passive. If you start poking around in some of the lower-level VIs in the FTP drivers you'll see inputs for selecting the mode. However this mode switch was not exposed to the higher-level FTP code that NI shipped.

I do remember that to get the FTP drivers to work I had to use the other mode from the one that was selected by default. I remember that I was getting the same error message you gave.

Mike...

PS: Just looked at your code and you can see the "active (T)" input on the Send VI. Try wiring a False constant to it. Also connect the error cluster between the FTP Open Session VI and the Logon VI.

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 3
(3,927 Views)
I had the same type of error while ftp'ing from a LYNX OS box to a windows box. Labview ftp would consistently add the spurious CR (0x0D) someplace in the file, causing my downstream file parser to barf. I fixed it by changing mode from ascii to binary in the ftp[RETR].vi input...

I can send example code but try playing around with the active/passive and ascii/binary constants.

mr_bill.....
0 Kudos
Message 3 of 3
(3,927 Views)