LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I generate an automated response to the dialog box that appears when I try to write over a file?

Hi,

I'm a beginner with labVIEW and am trying to generate a loop that reads a 1D array of data from a file, then manipulates the data and writes it back to the same file.

The problem is that a dialog box appears after every iteration asking do I want to replace the file. Is there any way of automating the program so that the file is always written over without the dialog box appearing.

I think using the open/create/replace file would do this function for me but I don't know how to implement it.

Thanks,
Hank.
0 Kudos
Message 1 of 2
(2,479 Views)
Yes you can do it but it needs a little manipulation:
-If you write in your file with Write to Speadsheet File.vi, pop-up on this vi and open its panel
- On the Open/Create/Replace.vi you will find a terminal advisory dialog? which is not connected
-Connect a false constant to it
- Save your modified write to Spreadsheet File vi with another name (so you don't change your original vi) and use it in your application

For more versatility you could connect a boolean control instead a constant and create a connection of it on the connector pane of the vi; in this way you can re-use the vi choosing whether to show the message or not.
Message 2 of 2
(2,479 Views)