LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

overwriting a file woithout confirm

Hi LabViewers,

I have a file which I use temporarely and want to overwrite each time I
use it.

I use "Write Characters to File VI" with 'append to file' set false.

Problem: I have to confirm 'replace the existing file' each time - it
should be an autimatic system 😉

Thanks for any hints

Urs Bogli
0 Kudos
Message 1 of 4
(2,333 Views)
If you look inside Write Characters to File.vi, you'll find Open/Create/Replace File.vi. This has an input called advisory dialog?. The default is true. Make a copy of Write Characters to File.vi (so that future LabVIEW updates don't overwrite changes) so that you can pass a false value to Open/Create/Replace File.vi.
0 Kudos
Message 2 of 4
(2,333 Views)
Dennis Knutson schrieb:

> If you look inside Write Characters to File.vi, you'll find
> Open/Create/Replace File.vi. This has an input called advisory
> dialog?. The default is true. Make a copy of Write Characters to
> File.vi (so that future LabVIEW updates don't overwrite changes) so
> that you can pass a false value to Open/Create/Replace File.vi.

thanks- that's it!
Urs
0 Kudos
Message 4 of 4
(2,333 Views)
I copy the original file to a back-up file (can be very handy in case it contains valuable data/info).
Then I delete this original file.
Following you can create a file with the original filename.
It will not be the most efficient method, but it works for me.
0 Kudos
Message 3 of 4
(2,333 Views)