Jump to content

TDMS not closed, data useless?


Recommended Posts

Good morning,

I had a problem with my long time messurment. The programm crashed and it did´nt close the tdms file. There is sadly no way, i can repeat the messurment. Is there a way to recover the file? 

The storage was formated in FAT32, that is the reason why the programm crashed at 4 Gb filesize.

 

Thanks for your help.

Link to comment

So what I suspect here is that you were using the TDMS write over and over again but the buffer never caused a flush to disk, and you never explicitly called the flush function.  Then the program crashed and no file was written to disk.  If your file did at one time flush to disk then you'd have some data to look at.  If you have a file but it has an error on open, then you might be able to still pull out chunks of the file and recover some of the data.

I tend to have a logging module (actor) that will periodically flush to disk, then check for fragmentation, and close, defrag, and reopen the file if it gets fragmented.  This is in parallel to the test running so data will pile into a queue while this is happening.  This helps make TDMS a bit more robust, because as you found if you have the whole file in memory and then the system crashes, or there is a power outage, then the file is lost.  Flushing to disk periodically help keep at least some of the data.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.