LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Opening a file

Hi,

I need to build a VI which has to search for a file in a specific folder in the computer. The file for which the labview searches is initially not present in that folder. That file will be in the process created by a third party software. So I guess the lab view should use a loop which keeps checking for the fiel whose name is known till it gets creates in that folder.

Any help would be highly appreciated.

Thanks
Ajit
0 Kudos
Message 1 of 2
(2,490 Views)
Ajit;

Probably there are very elegant ways to do what you are asking. The attached file is probably a "quick and dirty" approach. It is a while-loop that execute every second and attempts to open the file. If the file do not exist, an error is generated and therefore the loop continues. The VI stop when the file can be opened (an indication it exist).

Regards;

Enrique Vargas
www.visecurity.com
www.vartortech.com
Message 2 of 2
(2,490 Views)