LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Search for pattern in sub directories

Hi cphuong,

No need to apologize.  I was able to get the program to index all files in the sub folders.  But now it seems I have developed an unexpected problem.  I think the problem occurs with the value I am sending to the shift register.  The program is sending the paths of the individual files to the recursive vi, giving me an error about non existen path.  What should I send to the shift register, so it is not searching the files found in the sub folders?  Eventhough I am still getting the error, the program displays the correct values in the indicator.  When I tried to suppress the error with an error indicator, the program ran extremely slow.

Thanks again,

Adam

 

0 Kudos
Message 11 of 14
(956 Views)

Hi Adam,

You will need to use the shift register to build the array of data you want to display, but use the original tunnel structure to search through the directory. 

Please let me know if this is unclear or if you have any additional questions.

Regards,
Ching P.
DAQ and Academic Hardware R&D
National Instruments
0 Kudos
Message 12 of 14
(940 Views)

Ok, with your help, I was able to figure out how to display the entire files in the sub folders.  I don't understand why the array containning all the files is a 2D array.  Inside the 2d array are blank lines.  I am confused at how labview is auto-indexing the array.  Is there away to output all the files of the sub folders into a 1D array without using the auto-index feature?  If I don't use the auto-index feature, I only get the last element of the array.  Is this what you had in mind when you said use the shift register to build the output array, and the original tunnel to search the sub folders?  It's so close to working.

Adam

0 Kudos
Message 13 of 14
(938 Views)
Hi Adam,

You are correct, that is the reason I asked you to use a shift register to build the array output.  Please take a look at this document for more information on shift registers.

Please let me know if you have any further questions.
Regards,
Ching P.
DAQ and Academic Hardware R&D
National Instruments
0 Kudos
Message 14 of 14
(922 Views)