From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ftp error Could not establish connection

Solved!
Go to solution

hello there,

I am trying to connect to ftp server to get a file from it.

I used the "FTP get file.vi"

here a screenshot showing the front panel and the block diagram:

ftp.png


on the left there is filezilla showing that the ftp server is connected just fine and the remote path showing the files which I want to get one of them "log.txt"

 

I filled the same info into my labview vi .. and when I hit run this error pops up

 

{

Error 0 occurred at FTPOpen Data Connection: Could not establish connection

 

Possible reason(s):

LabVIEW: Error connecting to GPIB driver or device.
=========================
VISA: (Hex 0x0) Operation completed successfully.

}

 

I don't know what wrong am I doing... any ideas?

Thanks!

0 Kudos
Message 1 of 4
(4,121 Views)

Did you try to specify a filename for the local file instead of just a directory/drive?

 

0 Kudos
Message 2 of 4
(4,110 Views)
Solution
Accepted by ragaey

Thanks for your reply.. I solved the problem 1 minute ago .. turned the data connection from active to passive by using false in active terminal..

 

another error pops up that I need to put the same file type as the file I am asking to get .. I made the local path g:\file.txt and it workd just fine ...

Thanks,, 🙂

Message 3 of 4
(4,105 Views)

I had the same problem.  Setting those NI FTP VI "active" inputs to the non-default setting fixed my problem.  Thanks.

0 Kudos
Message 4 of 4
(3,644 Views)