Skip to content

Recover samples from an unfinished file #89

Closed Answered by ihedvall
tiagoporsch asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for finding and fix this bug in MDF 3 writers. This is actually a bug as your code change, so to say exists, in the MDF 4 writer SaveQueue() function.

Note that some loggers as from the CSS Electronics company, just append bytes at the end of the file without updating any of the internal counters. Instead the mark the file as unfinished in the initial ID block. This causes problems for most MDF readers as it appears not exist any samples.

The MDF 4 reader check this and finalize the files by updating the counters (it's many in MDF 4). There is a time penalty for doing this as you have to read the data block twice.

Replies: 1 comment 1 reply

Comment options

tiagoporsch
Jun 24, 2024
Collaborator Author

You must be logged in to vote
1 reply
@ihedvall
Comment options

Answer selected by tiagoporsch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants