11-03-2011 10:22 AM
Hi ,
I want to using labview 8.2 program to monitor hard disk(one folder in hard disk) for example one application generate a result file to the folder then it will be captured by labview program.
thank you
Solved! Go to Solution.
11-03-2011 10:48 AM
There should be several VIs under the Advanced FileI/O Palette to accomplish that.
Christian
11-03-2011 11:52 PM
thank you Christian.
I also think it should be in the Advanced FileI/O Palette but I do not know which vis be used
can you please tell me
Jacky
11-04-2011 03:23 AM
Unfortunately I don't have LV8.2.X installed anymore, so I cannot guid you to a specific VI.
However, you should be able to use the Context Help to see which VI can be usefull for your task.
Christian
11-04-2011 09:29 AM
thank you
I try to look for the infromation from the Context Help but can not
does anyone can help me.
11-04-2011 11:33 AM
What exactly are you trying to monitor? If the file is created? If the file is changed?
Without resorting to some operating system specific options the only thing you can do is to poll the file information on a periodic basis to see if it has changed. For example, the File/Directory Info function will tell you the modication date. That same function can be used to check for the existence of the file by looking at the error code. In fact, that's exactly what the "Check if File or Folder Exists" VI does.
If you want a more "event-based" scheme then you can try something that's OS-specific. For example, on Windows you can use .NET by making use of the FileSystemWatcher class (http://forums.ni.com/t5/tag/FileSystemWatcher/tg-p/board-id/170)
11-05-2011 04:28 AM
actrually I want to monite a floder if one file is created(by other application) then capture and analyse it.se
from your suggest I had already used .net class FileSystemWatcher to fix it.
thank you