08-01-2020 09:59 AM - edited 08-01-2020 10:00 AM
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:
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,
08-04-2020 01:30 PM
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
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord