LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 8 When deleting Report

I am using the save report.vi to save a Test result. When I start the test the first time, the file is deleted before saving. When I start it more often i receive and Error 8 at the delete file.
Because i ignore the error, save Report.vi opens a dialogue for replace or cancel. Replacing will overwrite the file.
When i stop the program and run it again, I do not receive the error or the dialog box for the fist saving action again.

I tried some application to delete the refnum but i couldn't. So what can i do to delete the file?
0 Kudos
Message 1 of 3
(2,601 Views)
Hi,
I've had a look at your application and the access denied error stopped when I closed the file.

Your application can't delete the file because it is still open. The first time, the file is not open so there is no problem but when you open it once, you're not allowed to delete it before closing the file.

To avoid this problem what you could do is go in the Save report to file vi (which is in your save report.vi) and close the file after writing into it.

See details on the picture attached.

Hope this helps !
Julien
Message 2 of 3
(2,601 Views)
It's working fine.

Thanks!
0 Kudos
Message 3 of 3
(2,601 Views)