From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use a wildcard to call a set of files?

I had this vi working once and now I can't recreate it.  I have a folder with an ASCII file of temperature readings from each day of the month.  The filename consists of the date and time.  I want to recall each file in a loop and find the maximum value in three of the columns (that all works).  My problem is that even though the date portion of the filename is easily found, the time stamp could be anything.  So, a created a path that includes the drive, the folder, and the subfolder (the month of the year).  Then I appended from the loop the day of the month.  I am using an asterisk '*' as a wildcard.  The vi does not like it.  If I strip off the time portion of all of the filenames, it works fine.

Example of a file name : Q:\APR\2010\1_2010\1_22_2010 60719 AM     - Type of file is a Text Document

 

Example of using a wildcard: Q\APR\2010\1_2010\1_22_2010*

It's at the end as people on this board have suggested.

 

 

0 Kudos
Message 1 of 4
(2,466 Views)

Hi Ronster,

you can use the "List Folder" function with a wildcard. Is this an option for you?

 

Mike

0 Kudos
Message 2 of 4
(2,432 Views)

Does the list function require interaction by the user?  I was hoping to avoid that.  I'll check it out.  Thanks.

Ron

0 Kudos
Message 3 of 4
(2,425 Views)

Hi Ronster,

no it doesn't. You can use it to list all specific files in a defined folder.

 

Mike

0 Kudos
Message 4 of 4
(2,421 Views)