LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FTP Store Multiple??? Upload multiple files

I have the FTP toolkit.I am working on a vi where I am uploading a number of files and subfolders to a FTP server. I have made the vi so I can upload one file at the time and making one subfolder after another.

I have tried to use the "FTP store multiple.vi" but I have not been successful. This vi only works for me when uploading one file.

 

Normally I use a FTP program where I upload one folder containing all the files and subfolders. My question is:Is it possible to upload several files and subfolders using one vi call without naming them all? 

 

0 Kudos
Message 1 of 2
(3,738 Views)

Hi,

 

I haven't found a way for selecting files, folders and subfolders at once, and then using LV uploading the entire ting to a FTP server.

However this doesn't mean it can't be done in steps:

I presume you are using LV Internet toolkit. "FTP Put Multiple Files.VI" has a "file specifications" input, which is an array of clusters. The cluster contains the remote- and local path information of the file you want to upload tothe FTP Server. So what you need is to find a way in LV  to fill up this array with the files you want to upload.

I have attached a llb that can select multiple files in LV and return their paths to an array.

 

From "FTP Browser.vi" in LV Example Finder there is a function where you can create new FTP folders. Please take a look at that example.

What you want is select multiple files and upload them to FTP server. Then create some new folders and upload new files by adding the new pathnames to the "remote path" inputs.

 

I hope it all makes sense and please let me know how it goes.

 

Thanks!

 

-----------------------------------------------------
Dennis Morini
District Sales Manager
National Instruments Denmark
http://www.ni.com/ask
0 Kudos
Message 2 of 2
(3,720 Views)