LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

over-riding the "create or replace" function in WriteToSpreadsheetFile.vi

I would like to modify the WriteToSpreadsheetFile.vi so that it automatically replaces a file, without asking me if it is okay to replace it. i.e. I want my file to be just one line, and not have to append it.
0 Kudos
Message 1 of 4
(2,540 Views)
It's very easy. Just open up the function and delete the file before you open it!!
John www.tradersmicro.com
0 Kudos
Message 2 of 4
(2,540 Views)
The Write to Spreadsheet File.vi uses Open/Create/Replace File.vi as a subVI. The subVI has a an "advisory dialog" boolean.

Save a copy of the Write to Spreadsheet File.vi with a different name and wire a True constant to the advisory dialog boolean.

If you do not save the VI with a new name and into your directory, the modified VI would be used in any other NI VIs or examples. They might not work properly with the modification. Also your changes would be overwritten at the next LV upgrade.

Lynn
Message 3 of 4
(2,540 Views)
Thank you. It worked.
0 Kudos
Message 4 of 4
(2,540 Views)