04-12-2006 04:52 AM
I have to do something on a file or folder when this is changed from outside the program. I can write a loop and look regularly to the change date. However to avoid unnecessary CPU processing, I would like to be notified when a file is changed. Can this be done by events in LabVIEW ?
Thanks in advance for your reaction.
Best regards,
Marc
04-12-2006 05:12 AM
04-12-2006 06:56 AM
Thank you for the response.
04-12-2006 10:36 AM
LabVIEW has not a build in disk event handler. On Windows I would call the Windows API functions FindFirstChangeNotification together with the according event handling APIs. Or maybe since LabVIEW does not run on 9x systems anyhow anymore use ReadDirectoryChangesW instead.
@Marc VH wrote:
Dear,I have to do something on a file or folder when this is changed from outside the program. I can write a loop and look regularly to the change date. However to avoid unnecessary CPU processing, I would like to be notified when a file is changed. Can this be done by events in LabVIEW ?