LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to overwrite a file with "write bmp file .vi"?

I want to save a bmp file with labview 6.0.
I use the composant "write BMP file.vi" and when I want to overwrite a file, an error appears : write new file in write bmp file.
Thanks in advance
0 Kudos
Message 1 of 7
(3,167 Views)
Open up the VI and look at the New File function. It has a false constant wired to the overwrite input. Instead of a constant, make it a front panel control. Save it as a different name and in a new location.
0 Kudos
Message 2 of 7
(3,167 Views)
Sorry, but I want to overwrite a file (same repertory and same name).
In the "write a bmp file .vi", there is no constant to manage it....
If that can help you, I have put in attach a part of my file...

Best regards
Titia
0 Kudos
Message 3 of 7
(3,167 Views)
My LabVIEW 6.1 Write BMP File.vi does. If the attached picture does not match your version of the VI, what version of LabVIEW are you using?
0 Kudos
Message 4 of 7
(3,167 Views)
My composant "write a bmp file" has no "refnum" node.
The error I meet is, in french, "erreur 10" puis "Chemin en double"...
My labview 's version is 6.0.
Titia
0 Kudos
Message 5 of 7
(3,167 Views)
Maybe there's some sort of language barrier but all I can do is repeat my previous answer. Inside "Write BMP File.vi", you will see the New File function with a false wired to the overwrite input - the area I circled in the picture. I looked at the 6.0.2 version and it's there. Refnum has nothing to do with it.
0 Kudos
Message 6 of 7
(3,167 Views)
Hello,
Thanks a lot for your answer. It works!
I hadn't understood that the "Write in BMP file" composant is a sub VI....
Best regards
Titia
0 Kudos
Message 7 of 7
(3,167 Views)