LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Callback event for modified text file

I am looking for a way to register, in LabVIEW, an event that signals when a text file has been changed by a 3rd party software. I could use the 'File/Directory Info' LV primitive in a loop to let me know when the file has been changed but that would be very inefficient. Does someone know of a COM object that would let me 'stream' the changes of the text file or that allowed me to register an ActiveX callback event?

Chris_Mitchell
Product Development Engineer
Certified LabVIEW Architect

0 Kudos
Message 1 of 2
(2,692 Views)


@Archimedes wrote:
I am looking for a way to register, in LabVIEW, an event that signals when a text file has been changed by a 3rd party software. I could use the 'File/Directory Info' LV primitive in a loop to let me know when the file has been changed but that would be very inefficient. Does someone know of a COM object that would let me 'stream' the changes of the text file or that allowed me to register an ActiveX callback event?





If you know C/C++ well, take a look Window API: FindFirstChangeNotification.
You can find it doc on MSDN.

George Zou
http://gtoolbox.yeah.net
George Zou
0 Kudos
Message 2 of 2
(2,685 Views)