ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

File Delete problems

I have written a vi and the first thing it needs to do is delete an existing
results file from a previous run.
I am trying to use the file delete vi, FIle I/O --> Advanced-->Delete. But
it is not working. I get a file error 6 as follows:

Warning 6 occurred at an unidentified location.
Possible reasons:
LabVIEW: Generic file I/O error.

I know the path is correct, because I use the Dup path output from the
Delete vi when I write out the new rersults file.

Any help is appreciated...

Mike
0 Kudos
Message 1 of 3
(3,190 Views)
Hi,
One question:
Have you closed the file before deleting?
I'm afraid that if you work with file and don't close it you will have problems with delete.
Use "Functions->File I/O->Close file.vi" before Delete.

Good luck.

Oleg Chutko.
0 Kudos
Message 2 of 3
(3,190 Views)
The file should be closed, but I will add this to see if it helps anyway.

Thanks, mike

"Oleg" wrote in message
news:506500000005000000B0890000-1023576873000@exchange.ni.com...
> Hi,
> One question:
> Have you closed the file before deleting?
> I'm afraid that if you work with file and don't close it you will have
> problems with delete.
> Use "Functions->File I/O->Close file.vi" before Delete.
>
> Good luck.
>
> Oleg Chutko.
0 Kudos
Message 3 of 3
(3,190 Views)