LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"List Directory" function performance decrease in Labview 7

I have a Labview program that the user inputs a .pdf file name, and the program searches through a nested directory tree and opens the .pdf if it finds it. The program uses the "List Directory" function in a loop to first build an array of all of the subdirectories in the main directory. The program worked fine in Labview 6.1 and earlier - consistantly found the file in less than a minute. However, when I upgraded to Labview 7, the search now takes 7-8 minutes. A call to National Instruments said that I am the second person to report the issue, but it is too new to have a work around yet. Does anyone know of another way to do this without the "List Directory" function that would perform much better with Lab
view 7?
0 Kudos
Message 1 of 3
(2,555 Views)
It could be the build array in a loop that's causing the performance hit. Have you tried initializing the array to a set size first?
0 Kudos
Message 2 of 3
(2,555 Views)
> upgraded to Labview 7, the search now takes 7-8 minutes. A call to

As mentioned in the other posting, this could be due to something else
on the diagram. If you are pretty sure this is indeed caused by a
slowdown in List Directory, could you give more detail about the OS and
perhaps a simple example showing how you are making the measurement.
Send it to ni.com/support.

Greg McKaskle
0 Kudos
Message 3 of 3
(2,555 Views)