The 'File/Directory Info' function comes close to what you want. You find
it in the functions palette 'File I/O'-->'Advanced File Functions'.
Wire a path control to the input, unbundle the boolean status indicator
from the 'error out' cluster and negate it.
You can easily make a subvi of this, but it's probably overkill. The path
control should contain a full path to a file.
Franz
citizenDAK schrieb:
> I'm looking for a sub-vi I can use in LabVIEW, that accepts a path
> (folder/directory) and a filename, and returns a simple boolean that's
> TRUE if the named file exists in that path.
> It should NOT raise a "File not found" error like the "List" vi does.
>
> (It would be nice if the input path could OPTIONALLY contain a
> filename, instead of requirin
g the seperate filename terminal to be
> connected.)
>
> By the way, I'm quite surprised I didn't find this as a pre-made block
> in LabVIEW's toolbox.
--
Dr. Franz Josef Ahlers
Section Semiconductor Devices
Physikalisch-Technische Bundesanstalt
Bundesallee 100
D-38116 Braunschweig
phone: (+49) 531 592 2410
fax: (+49) 531 592 2405