LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Look for a filename containing a Wildcard (how to?)

My program enters a loop, and when a certain file is found, the loop exits and resumes duties. The file will start with "Pos_" or "Neg_" or "Warn_" then have some arbitrary junk, before suffixing in txt. So... how do I search for a filename with a wildcard? The attached JPG is how I'd like to do it, (and this works fine if the filenames are constant) but of course it doesn't work for the wildcard.
Richard






0 Kudos
Message 1 of 3
(3,121 Views)
List the files using the list function. The list function accepts a path with wildcards. If you need to filter the file list further wire the file list to a while loop, and search the file name array for either of the name headers you want...
Message 2 of 3
(3,121 Views)
Thanks for the response Mads. I'll give that I try. I'm horrible at arrays, I tend to keep everything flat. Probably stoopid in this case.
Richard






0 Kudos
Message 3 of 3
(3,121 Views)