LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

why use LabVIEW access files through Ethernet is slow?

Hi,
I use the LabVIEW function to search in a network driver which is located in another pc through a 100M Ethernet, but the speed is very low.
 
I just need to find from the virtual dirver (contains about 2,000 .txt files) a txt file. but it will take me about 2 minute to find it out.
 
I have noted that the network usage is only more or less 0.3%, I don't know how it be and how it can be faster?
0 Kudos
Message 1 of 3
(2,991 Views)

I do know that working with network drives in Windows can be very slow sometimes.

I haven't tried looking at a directory with 2000 files, but I'm guessing you are trying to list the directory's content and search through that list and I expect that generating the list is what takes up most of the time. If you just need to see whether the file exists or not, you can try using the File/Directory Info VI and if you get an error the file does not exist. If this does not help, you should post some more details, like whether you can index the file list in another file, whether accessing the directory through Windows takes a long time, etc.


___________________
Try to take over the world!
0 Kudos
Message 2 of 3
(2,982 Views)
thank you.
 
The function file/directory info works very well. It spends less than one second to find the file and then I use the function read the file. And it runs fast.
 
I originally used the function list directory to copy all the files' name into an one dimention array, and it takes a lot of time.
0 Kudos
Message 3 of 3
(2,960 Views)