LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data read from ftp files?

Hi,

 

I updated the code I am referring to in the discussion below. See attached.

 

I need to be able to read ftp files directly and open data contained within them. The screen shot shows that I need the output of a two element bundle converted to an array (somehow). The input to the FTP Get Multiple Buffers is an array.  I tried using convert cluster to array... it didn't work. 😞

 

I remedied the problem by initializing an array using the two element cluster - see the second page of the attached.

 

I ran the code and got the error you see on the second page, any suggestions for clearing it?

 

 

 

0 Kudos
Message 1 of 12
(3,656 Views)

The document you are posting is corrupt.  Please paste the text of the error directly into the post.  Opening DOC files is not exactly safe from untrusted sources, so you might get faster responses if you avoid this in the future.

Machine Vision, Robotics, Embedded Systems, Surveillance

www.movimed.com - Custom Imaging Solutions
0 Kudos
Message 2 of 12
(3,650 Views)

 
 
   
 Thank you for the heads up!  Below is the updated screenshot.
  
  
  
  
  
  ReadftpFiles.jpg
  
  
  
  
 
 
 



 
  
  
  
  
  
  
  
  
  
  
  
  
 
 
 


0 Kudos
Message 3 of 12
(3,639 Views)

From the error code

 

"530 Login Incorrect" I would have to assume that your login information to the FTP is incorrect. Make sure you are able to login to the FTP with those credentials (admin and password).

0 Kudos
Message 4 of 12
(3,630 Views)

As BFegium said, it looks like your login information may not be correct.  I'd double check that.

 

Also- is the error being returned by the get files or get buffers VI?  If you're only getting one buffer per iteration of the loop, you should probably use "FTP Get Buffer" rather than "FTP Get Multiple Buffers".  The Get Multiple Buffers function expects an array of clusters.  Hover over the terminal to check the data type.

 

The cluster to array function only works for clusters that contain only one type of data.

 

Regards

Tom L.
0 Kudos
Message 5 of 12
(3,623 Views)

Thank you,  I have updated my code.  I am now getting the following error after the FTP Get Buffer.vi executes -  see attached.

0 Kudos
Message 6 of 12
(3,584 Views)

Here is a screenshot of my updated code and error.


 
  
  
  
  
  
  
  
  See attached code and error.  Thank you.
  
  
  
  
 
 
 


0 Kudos
Message 7 of 12
(3,582 Views)

Why are you putting the ftp: part and the path to the server within the remote path string?

The FTP functions already know you are doing FTP, and the remote server doesn't need its IP address.  It just needs the path to get the file from relative to itself.

 

You may also need to put in forward slashes / rather than backslashes \.

 

Check the example finder for a couple of FTP examples to see how to structure the inputs to the FTP functions.

 

0 Kudos
Message 8 of 12
(3,569 Views)

ftp [mkd].vi may be what I need to get this thing to work.  Thank you, Dave from NI Support!  See the link below.

http://digital.ni.com/public.nsf/allkb/0C3DADDE199AE8F9862574BE0059F494

 

0 Kudos
Message 9 of 12
(3,546 Views)

I found an example on an evaluation copy of LabVIEW 2013 - (at home) that seemed to help.  Unfortunately I was unable to find the same example on my work computer running LabVIEW 2012.  I had to ask Dave to help me out!  🙂

0 Kudos
Message 10 of 12
(3,544 Views)