LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW created .DAT file with saving only new data on existing files

I can successfully create and save a .DAT file using LabView and Diadem.   The save command I am using (in Labview) only overwrites existing files, I would like it to save only the new data from the last save.  Overall I would like to save the data every 1hr and since my test will last for many hours, the further along in the test the longer it would take to save the full file.  I know Diadem has the capability to save in such a manner, so I have thought about after I write to Diadem have a small Diadem application save periodically, but I haven't found a way to save the .DAT file, with out any signals coming into the save function.  I have attached the example .DAT file creater and saver I am using to figure it out.  thanks for your help!
0 Kudos
Message 1 of 4
(4,243 Views)
Sorry, the attachment didn't make it on the first go.
0 Kudos
Message 2 of 4
(4,228 Views)
Howdy New Guy -

I am not sure if you are looking to append to a file, or if you would like to overwrite a file.  In either case, you can take a look at the "Append To File.vi" example for DIAdem. 

Either way, you may be experiencing problems because you are only using the "DIAdem Simple File Write.vi" (found on the DIAdem >> DAT Files palette).  Instead, you can use the "DIAdem File Write.vi" (located on teh DIAdem >> DAT Files >> DAT Files Advanced palette).  This VI can be set to overwrite or append to file.

I hope this helps in your development!

Andrew W. || Applications Engineer
0 Kudos
Message 3 of 4
(4,209 Views)

Yes the File Write was a good example.  I ended up writing my data to a binary file, and then writing the Header separately.  Thanks for your help!


C

0 Kudos
Message 4 of 4
(4,200 Views)