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.
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.
01-11-2017 04:08 AM
Hi
I'm workin on a LabVIEW application which need to interface with an FTP server to get and to put files.
Moreover, i need to download the entire content of a given directory. This directory is defined by user, so it's name and it's content are not fixed.
For example, this directory can contain several files and/or several sub-directories (which can contain several files and/or several sub-directories, etc.).
Is there a VI in Labview or through the LVTN which can do this operation?
Or need i to develop it myself?
Thanks.
Solved! Go to Solution.
01-12-2017 07:48 AM
Hi,
You might find some answers in thoses documents.
http://www.ni.com/example/29269/en/
http://digital.ni.com/public.nsf/allkb/3D985C3C08C12D0B862574BB005A7684
Have a nice day.
Adrien
Adrien M.
Certified LabVIEW Developer
National Instruments France
Travaux Pratiques d'initiation à LabVIEW et à la mesure
Du 2 au 23 octobre, partout en France
01-12-2017 11:09 AM
FTP Directory Listing and FTP Get Multiple Files should get you what you want.
01-13-2017 02:35 AM
@Mancho00
Not exactly.
FTP Listing Vi lists only the files and directory in the current directory. Maybe i'm wrong, but it is not recursive.
@adrienmngr
Your function seems to work.
But, if i can, i prefer to not use system exec.
01-13-2017 08:51 AM
01-13-2017 09:58 AM
Of course, i'd the same idea.
Howerver, for me it is hard to believe that no one before me had to do this type of operation in their project.
Or maybe there is, but no one publish his solution.
01-13-2017 11:48 AM - edited 01-13-2017 11:48 AM
@mhed wrote:
Of course, i'd the same idea.
Howerver, for me it is hard to believe that no one before me had to do this type of operation in their project.
Or maybe there is, but no one publish his solution.
I'm positive many have done it. I've done it myself, though not in LabVIEW. There's nothing particularly novel about this feature such that a code example is needed. If you know how to do recursion (for which there are many examples), and you know how the FTP functions work, it shouldn't be much work to get it going.
01-18-2017 04:11 AM
Ok.
I'll try this method.