09-05-2013 11:31 AM
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?
09-05-2013 11:38 AM
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.
09-05-2013 12:01 PM
Thank you for the heads up! Below is the updated screenshot.
09-05-2013 12:09 PM
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).
09-05-2013 12:19 PM
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
09-12-2013 05:13 PM
Thank you, I have updated my code. I am now getting the following error after the FTP Get Buffer.vi executes - see attached.
09-12-2013 05:24 PM
Here is a screenshot of my updated code and error.
See attached code and error. Thank you.
09-12-2013 09:26 PM
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.
09-13-2013 12:23 PM
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
09-13-2013 12:37 PM
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! 🙂