python-3.7mdfasammdf

Reading between <TX> tags in MDF file?


I'd like to read specific user inputted comments between <tx> tags in an MDF/MDF3 file with python. Is this possible using asammdf or mdfreader?

Parsing through the file the 'pythonic' way is giving gibberish results for some files


Solution

  • You should look at the comment attributes of the blocks that are interesting to you. See https://asammdf.readthedocs.io/en/latest/api.html#mdf-version-2-3-blocks

    Can you give an example of what TXBLOCK needs to be parsed? A MDFValidator screenshot would be nice too.