LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

datalog file close release

After writing and reading a datalog file, and closing it with the Close File.vi, my Windows XP computer will not allow me to delete the folder containing the file.  "It is being used by another person or program" my machine says. 
 
Labview (version 😎 is the culprit.  Closing Labview will allow me to delete the folder.
 
Perhaps the Close File vi is not always executing, but I doubt it.  Is there a fix?  Is there a diagnostic tool, such as asking Labview which files it thinks it still has open?
0 Kudos
Message 1 of 4
(2,821 Views)
One more juicy bit of info:  I can delete every file out of that folder.  I just can't delete the folder itself!  What the ... ?
0 Kudos
Message 2 of 4
(2,817 Views)

Mr. Paul,

                  Your Close vi function is not executing and thats why ur PC is not allowing you to delete the folder, i also was facing the problem, but it was not allowing me to delete the file in which i was writing the data, and if possible send me the code, i might help you.

Thanks,

Nishant

0 Kudos
Message 3 of 4
(2,806 Views)
OK folks!  The problem is in the Read Datalog File Example.vi, which I basically copied.  I can write to a Datalog and there's no problem.  But once I run the Read Datalog File Example.vi, or my vi which was based on it, I can't delete the folder.
 
Solution: delete the File Dialog operation from the very beginning of the vi.  The Open File operation now creates a dialog - with a different style but that's OK.
 
NI guys, fix this bug or rewrite your example please.  (This was Labview 8 and Windows XP, in case that matters.)
0 Kudos
Message 4 of 4
(2,780 Views)