LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TDM vs TDMS file size

Solved!
Go to solution

I'm an old hand at LabVIEW, but new to TDM and TDMS files.

 

I tacked this little bit of code into my program.  The VI ot the left produces an array of about 275 waveforms, each just over 12000 samples.

 

Screen shot 2012-08-15 at 12.22.59 PM.png

 

 

If I set the options on WRITE TO MEASUREMENT FILE to "Binary with XML Header", I get an INDEX file of 146 KB and a storage file of 26.6 MB.

 

If I change the option to "Binary", I get an index file of 293 KB and a storage file of 53 K - TWICE as much!

 

Why?

 

I would expect the XML version to be slightly bigger, not half the size of the other.

 

The first file was moved and renamed before the second ones were written, so there's no appending possible.

 

When / why should I choose bin-XML ?

 

When / why should I choose bin ?

 

 

 

Screen shot 2012-08-15 at 12.20.45 PM.png

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 1 of 3
(2,603 Views)
Solution
Accepted by topic author CoastalMaineBird

Never mind this.  Apparently, in one case, I had run the thing TWICE, with the options set to APPEND.

 

If I clear out all the files and start over, the TDM version is slightly larger than the TDMS, which is what I would expect.

 

D'oh !

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

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

Not sure if this is helpful, but it covers an issue I ran into when transitioning to TDMS files. 

http://forums.ni.com/t5/LabVIEW/ASCII-vs-TDMS/m-p/904196

--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 3 of 3
(2,568 Views)