skip to Main Content

I have got a trace file that is binary in nature. I want to convert it to a text file and convert the data inside it to decimal form. I mean I am not sure, how to do this. This .trc file contains data in the form of telegrams and I want to extract particular kind of telegram and save them in text file which is readable in nature. I have to do all of this using C++.

Do you suggest any other language for it or does anyone has any idea about doing this in C++?

2

Answers


  1. Binary trace files are usually encoded in proprietary formats. And there are applications or profilers specifically built to parse them.

    Unless you know the file format, the only way to decode it is through reverse engineering. And in most cases it’s not worth the effort.

    Try to find documentation about it. Or maybe an application or utility that loads the file and exports data that is easier to read.

    Login or Signup to reply.
  2. In case you are speaking about .trc binary files from Teledyne Lecroy Oscilloscopes, I would suggest to any of the following libraries out there for that:

    https://pypi.org/project/lecroyparser/

    https://github.com/jneer/lecroy-reader

    https://github.com/yetifrisstlama/readTrc

    https://igit.ific.uv.es/ferhue/lecroyparser

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search