LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save several measurement into one file?

Hellow!
I have a TKTDS read waveform.Vi in a for loop,i need to save the data in a file,but every time i was asked to save to a new file,it is not convinent,so how to save all the measurement in one file instead of several file? thanks!
0 Kudos
Message 1 of 5
(2,460 Views)
How are you writing to the file?

(Assuming you are using one of the high-level File I/O VIs.) Make sure to keep the current filename in a shift register. If the file path is empty, you'll always get a dialog. Also wire a "true" to the "append?" terminal so the data is added to the end of the current file.

To save resources, you should probably use low-leve File I/O. Open the file for writing once outside the loop, then keep writing to it inside the loop. Close the file outside the loop when the VI stops.
0 Kudos
Message 2 of 5
(2,452 Views)
I use "write spreadsheet to file.vi" what 's low level write file?can you give me a example? thanks!
0 Kudos
Message 3 of 5
(2,448 Views)
Have a look at e.g. the example "Write to text file" that ships with LabVIEW. You can find it using the example browser.
0 Kudos
Message 4 of 5
(2,440 Views)
Please find attached Example VI for your reference.

Cheers!
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 5 of 5
(2,436 Views)