Solution
1. General TDMS fileTypically size of the TDMS file will depend on the following factors :
- Data type
- No. of channels
- Time duration of logging
Estimate of size = (no. of bytes each data type consumes) X (no. of channels) X (number of samples)For example, we are logging a double data type for 10 seconds in 4 channels. Since the bytes consumed by double data type is 8 then;
estimate of size = 8 X 4 X 10 = 320 bytes.2. TDMS files logged using "DAQmx Configure Logging.vi"When we log using the "
DAQmx Configure Logging.vi ", the size no longer depends on the data type but rather on the width of the ADC used on the hardware.
Considering the above example, even though the data type is double, the "
DAQmx Configure Logging.vi " causes the raw ADC output to be logged to the TDMS file. Lets assume the ADC width is 16 bits(2 bytes), In this case the
estimation of size = 2 X 4 X 10 = 80 bytesNote : The actual size of the TDMS file will always be slightly greater than the estimated size because of the additional meta data that is included in the TDMS files.