LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I save data a file an add new data without overwrite the file?

Hi,

 

I want save data from a measurement in to a fille and later I want adding new data in the same file without overwriting the old data from the measurement before. I step the Amplitude in my measure and get many datas from every measure with a new Amplitude. This measure should be saved in the same file with two returns between the datas. How can I do this?

 

Martin

0 Kudos
Message 1 of 3
(2,632 Views)

 

Hi Martin,

 

Looks like your requirement is to save new data in old data file i.e append to same file..

 

Every LabVIEW File storage tool gives you option to append either its *.LVM, *.TDM, *.txt etc etc.. you just need to select it to have new data apended to data stored before.. just have look in express vi of LVM write or TDM storage ..

 

HS

0 Kudos
Message 2 of 3
(2,629 Views)

ernstm wrote:

I want save data from a measurement in to a fille and later I want adding new data in the same file without overwriting the old data from the measurement before. I step the Amplitude in my measure and get many datas from every measure with a new Amplitude. This measure should be saved in the same file with two returns between the datas. How can I do this?


How should each dataset be saved to the file? Are you talking about writing a formatted file or a binary file?

 

How does your data look like (waveform, 1D array, 2D array, etc).

 

I would wriite the sections as plain strings with append=true. For each section you could use "array to spreadsheet string" and concatenate that with a string constant containing two returns before appending to the existing file.

0 Kudos
Message 3 of 3
(2,626 Views)