10-27-2008 11:53 AM
Dear All,
I want to read data from a file but without knowing the file's full name.
For example i have data files from a program that the first letters of the data files are the date and the rest some numbers i cannot predict i.e 20081027_5323621.
Is it possible to read this file by knowing only the characters that correspond to the date?
thanks!
Solved! Go to Solution.
10-27-2008 12:07 PM - edited 10-27-2008 12:09 PM
Yes,
You can set a pattern in the file dialog that points to the date (formatted).
The output of the file dialog will be the complete file path for the file that was selected..
One question.. Do you want a popup window to browse for the file? to allow selecting one of the matching file(s)...
Because there may be more than one file that has a matching date...
R
10-27-2008 12:07 PM
10-27-2008 12:20 PM
What Joelabview proposes is what i was looking for , but i cannot find this vi anywhere. what is the name ? (i have labview 8.2)
thanks
10-27-2008 12:47 PM
The function that Joelabview proposes was replaced in LabVIEW 8.2 with the File Dialog Express vi.
Look under Functions>Express>Input for the express vi "File Dialog".
10-27-2008 01:04 PM
hi again,
thanks i found the vi.
i have two questions though
do i join my string i.e 20081027*.* to the default name or pattern input of the VI?
and second is it possible that it finds the file without a dialog box appearing, and only appear if the file is missing?
thanks again
10-27-2008 01:20 PM - edited 10-27-2008 01:21 PM
That is why List Folder will work. It has a pattern input as well.
10-27-2008 01:32 PM
ok that worked fine.
thanks a lot!!!
08-24-2009 01:59 AM
Hi,
I would like to use this 'List Folder' in Lab VIEW7.1
Can you please forward this VI to me?
Thanks in advance.
Regards
Rudresj
08-24-2009 02:04 AM
Hi Rudresj,
what do you mean? The "List Folder" function is available in the "File I/O" palette.
Mike