LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to detect folder change or file change event

Hello to all

I am trying to learn how to detect folder change or file change event. So I do not have to keep watching every certain period of time. What I am doing is quite simple. I have two separate VI applications. First will acquire data from DAQ board and do the calculation. If there is any kind of error then it will create ErrorLog.txt file at specific folder. Now the second application will watch for ErrorLog.txt file. So instead of watching for an ErrorLog.txt file is there a way that I can detect folder change or file change event.   


Thank you

Message 1 of 3
(6,910 Views)
I posted an answer in this thread. Take a look! It does require the .NET Framework 2.0, which is a free download. This is, therefore, a Windows-only solution. Hope this helps!
Jarrod S.
National Instruments
0 Kudos
Message 2 of 3
(6,900 Views)

Hello Jarrod

 

Thank you for your help, I looked the previous threads and download .NET Framework 2.0. Finally I am able to get it work.

 

Amit

0 Kudos
Message 3 of 3
(6,859 Views)