LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieving data from temporary TDMS file ("tdms~") after LabVIEW crash

Hi all,

 

I am trying to recover data from my TDMS file after LabVIEW crashed during an overnight experiment, before my VI gets the chance to properly save the file (sorry for loose vocabulary, but I am not expert in this).

 

During data logging, I see a temporary file with extension "tdms~" being generated on my local machine and data is recorded in this file. Two empty files with "tdms" and "tdms_index" extensions are generated as well. Usually, after the VI is finished/stopped, LabVIEW converts "tdms~" file into proper "tdms" file. But this time, LabVIEW crashed unexpectedly and I am unable to recover data.

 

What I have tried:

  • Tried opening "tdms" and "tdms~" files. I get error 2503
TDMS: ERROR: TDS Exception in Initialize: Tds Error: TdsErrNotTdsFile(-2503): 

Any idea on how to recover data is appreciated!

 

Attached file is "tdms~" file (had to manually change extension to "tdms" to be able to upload here).

 

Cheers,

 

0 Kudos
Message 1 of 2
(1,401 Views)

The TDMS file format writes data in chunks.  It is possible to pull out a chunk or segment, and disregard the last chunk which is likely corrupt.  Here is some code from NI that can help pull out data.

 

https://forums.ni.com/t5/DIAdem/Retreive-data-from-corrupt-TDMS-files/m-p/1551592#M13327

0 Kudos
Message 2 of 2
(1,339 Views)