LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete a tdms & tdms_index file programmable.

I have a tdms and a tdms_index file that I open and display the data on a graph and after which I close.

I then want to delete this file using the function DeleteFile(filename).  I keep getting error -6 access denied. How ever

when I restart the program and go directly to delete the file it works no problem. I stepped through the program to ensure that

I was closing the file before attempting to delete it but I still get the -6 error. Does CVI not release the file until it exits?

Any help would be appreciated.

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

Hi cjp1,

 

What steps are you going through to open, write to, and close the file? It would be helpful to know what function calls you are using and in what order.

 

Cheers,

Ryan

0 Kudos
Message 2 of 2
(2,354 Views)