LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

speeding-up copying of remote files with labview

Dear All,

I'm writing a Labview 6.1 application where I have to copy several times a bunch (200 to 300) of small files (1kb in size) to two different directories after having made an analysis of their content.

The source files and the destination directories are located on a remote computer via a lan connection.

The copying is really very slow when using the built-in file copy function located in the "advanced file functions" palette. It takes about 2 minutes for 150 files.

The copying within windows NT4 is really fast, so it doesn't seem to be a slow LAN connection.

Does anybody have an idea how to improve the copy speed ?

Any comment welcome!
0 Kudos
Message 1 of 3
(2,775 Views)
Paul,

Use the system exec to execute command line instructions. You will have to know the exact syntax of the command line entries. I know it has something to do with calling command.com, but don't remember the exact method.

You can also call a batch file using the same method.

There may be other ways, but these are the two easiest that I can think of.

Good luck, and please let us know how you do with this.
Message 2 of 3
(2,775 Views)
Hi Labviewguru !

I just modified my application with the hint you gave me. I used the "system exec" to call cmd.exe and then execute the os specific copy command. It just rocks !

The copying process shrunk down from over 2 minutes to only 8 seconds !

Thank you a lot!
0 Kudos
Message 3 of 3
(2,775 Views)