LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I continuously save the data into the Excel spreadsheet


without pop up a dialog box for each set of data?
0 Kudos
Message 1 of 5
(3,256 Views)
Depends on your exact VI call to write to the spreadsheet. However, if you wire in a 'constant' with the file path, it will happen automatically, and thus no pop-up dialog box.
You'll see on the 'Write to Spreadsheet.VI' an input for file path. It defaults to a dialog box, unless you force a direct path. Good Luck - Doug
0 Kudos
Message 2 of 5
(3,256 Views)
Jasmine;

If you wire a constant with the path and name of the file you want to save, Labview will not ask for the file when saving the data. Make sure to wire a TRUE constant to the "append file" input on that VI as well. By doing that you will overwrite the old data on that particular file.
By doing that another prompt will appear asking for permition to append the file. You have the option on going inside the Open/Create/Replace.vi, inside the Write to Spreadsheet.vi and disable that message. After changing that, just make sure those two VIs with another name, just to avoid to overwrite the original Labview VIs.
Hope this helps.
Filipe
Application Engineer
National Instruments
0 Kudos
Message 3 of 5
(3,256 Views)
hi

I have immediately built this vi for your reference.
You may modify it to suit your requirements.

Hint:
1) Set Append-to-File? : FALSE at each entrance to the program so that you have an option of whether to append or to overwrite the previously saved file.

2) Set Append-to-File? : TRUE when you are in your loop for data collection.


Hope this help in your LV programming.

Cheers
ian.f
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 4 of 5
(3,256 Views)
You can automatically name files using the time/date functions. This can be pretty elaborate, but very useful if you're collecting data continuously. I've attached a PART of a vi. that does this. The vi. will show up as broken, because you need to add your input. But you should get the idea.
Eric P. Nichols
P.O. Box 56235
North Pole, AK 99705
0 Kudos
Message 5 of 5
(3,256 Views)