C# application to convert .trc using .sym file

This forum covers issues concerning multiple software products.
Post Reply
snieves77
Posts: 4
Joined: Thu 11. May 2017, 22:02

C# application to convert .trc using .sym file

Post by snieves77 » Fri 1. Sep 2017, 19:53

I have trace files being generated and I need to convert them to csv/excel so the data can be imported into a table. I have a symbols file as well. Can anyone provide any guidance on how to do this using C#? I've started by just using C# to open the file and start parsing the data but I was wondering if there's a preferred method that will also use the symbol file. Any assistance would be greatly appreciated.

Here's a snippet

Bus=1,ID=857,Type=D,DLC=8,Data=255 210 211 0 0 255 0 0 ,
Bus=1,ID=857,Type=D,DLC=8,Data=255 211 211 0 0 255 0 0 ,
Bus=1,ID=857,Type=D,DLC=8,Data=255 212 211 0 0 255 0 0 ,
Bus=1,ID=856,Type=D,DLC=6,Data=37 24 251 119 11 128 ,
Bus=1,ID=857,Type=D,DLC=8,Data=255 212 211 0 0 255 0 0 ,
Bus=1,ID=857,Type=D,DLC=8,Data=255 212 211 0 0 255 0 0 ,

K.Wagner
Software Development
Software Development
Posts: 1080
Joined: Wed 22. Sep 2010, 13:36

Re: C# application to convert .trc using .sym file

Post by K.Wagner » Sat 2. Sep 2017, 21:43

hello,

you could use the PEAK-Converter, a trace conversion tool that can convert trace files (*.trc) to comma separated values (*.csv), among others. The tool supports command line use, so you can automate your conversion process.

The PEAK-Converter can be downloaded using this link.

Note: this tool does not support using symbol files.
Best regards,
Keneth

Post Reply