09-24-2012 04:33 PM
I have a 3.2GB tdms file from an 30 hour data logging session that ended in an error that I have yet to debug. I need to get the data though.
The file too big to open with the traditional viewer, so I tried to open and read the first 1000 points. Nothing.
I tried the program here and got a memory error (heh, loading 3.2GB all at once.. should have read the code first).
Either I have 3.2GB of nothing (not likely since the logger works for shorter runs), or the error corrupted part of the file. Any ideas? Does a TDMS have metadata at the end of the file?
09-24-2012 05:04 PM
Give this link a try. Convert TDMS file to Text. Got nothing to loose at this point.
https://decibel.ni.com/content/docs/DOC-17246
09-24-2012 10:15 PM
Is there exist possible ways that we can get your corrupted TDMS file and do investigations? Or can you contact NI AE to offer this file so that corresponding NI developer can try to help ?
09-25-2012 06:59 AM
@deppSu wrote:
Is there exist possible ways that we can get your corrupted TDMS file and do investigations? Or can you contact NI AE to offer this file so that corresponding NI developer can try to help ?
Nothing proprietary is in the file, so it should be fine.
However, it IS 3.2GB and we have annoying IT policies. Not sure how I can pull it off.
09-25-2012 07:08 AM
@mfitzsimons wrote:
Give this link a try. Convert TDMS file to Text. Got nothing to loose at this point.
https://decibel.ni.com/content/docs/DOC-17246
Nope. Unfortunately this VI suffers the same fate. Not even opening the file. Error -2500 in "TDMS Open in TDMS_to_Text File_SE Format_LV2010.vi". I have a feeling this VI wouldn't work anyway since it loads the entire file into memory first. Thanks though.
When opened in a hex editor, I do see data and ASCII metadata. I see hex values up until 0xBBDA5B89 or 3.185204105e9, which is the size of the file. The data is there.
09-25-2012 07:19 AM
Here is a link of several suggestions on how to recover the file.
http://forums.ni.com/t5/DIAdem/Retreive-data-from-corrupt-TDMS-files/m-p/1103269
09-25-2012 07:31 AM - edited 09-25-2012 07:38 AM
@CAS_MattF wrote:
Here is a link of several suggestions on how to recover the file.
http://forums.ni.com/t5/DIAdem/Retreive-data-from-corrupt-TDMS-files/m-p/1103269
I had already tried the attached VI. Same problem, it attempts to open the entire file into memory. I'll try to reverse engineer it and see if I can try a buffered approach (hopefully this is my problem)
I don't have Diadem, but I may install the trial. Does it try to recover a corrupted TDMS, or just suffer from the same problem?
I do need to look into automatic file splitting. Doesn't help with my current predicament.
Then there is a stray post by someone with 1 total post about a poorly documented software that I'm a little scared to install.
(Thanks for the attempt... I hate shooting down suggestions like this)
09-25-2012 08:20 AM - edited 09-25-2012 08:20 AM
I just threw this VI together really quick. It's an attempt at breaking up the TDMS file to make several smaller files. Saved in 2011.
NOTE: I have not done any debugging, so it may no be perfect.
09-25-2012 08:35 AM
@crossrulz wrote:
I just threw this VI together really quick. It's an attempt at breaking up the TDMS file to make several smaller files. Saved in 2011.
NOTE: I have not done any debugging, so it may no be perfect.
The error occurs at the TDMS open. Whatever the solution is, I can't use the traditional TDMS VIs.
Thanks.
09-25-2012 08:42 AM
Diadem comes up with an "File has an invalid format" (Error no. 11). A 7 day evaluation? Heh, won't have time to play with it.
Still working on a buffered solution to the recovery VI above.
Implimented file splitting into the TDMS streaming. Live and learn.