LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to monitor hard disk in labview 8.2

Solved!
Go to solution

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

 

 

 

 

 

 

0 Kudos
Message 1 of 7
(3,079 Views)

There should be several VIs under the Advanced FileI/O Palette to accomplish that.

 

 

Christian

0 Kudos
Message 2 of 7
(3,069 Views)

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

0 Kudos
Message 3 of 7
(3,049 Views)

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

0 Kudos
Message 4 of 7
(3,041 Views)

thank you

 

I try to look for the infromation from the Context Help but can not

does anyone can help me.

 

 

 

0 Kudos
Message 5 of 7
(3,033 Views)
Solution
Accepted by topic author JAC_HU

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)

0 Kudos
Message 6 of 7
(3,021 Views)

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 youSmiley Very Happy

0 Kudos
Message 7 of 7
(3,011 Views)