bennomeier / leCroyParser

A Python Module to parse LeCroy Binary Trace Files
MIT License
12 stars 8 forks source link

Help me. cannot read .trc file #11

Closed ronnifadhlillah closed 2 years ago

ronnifadhlillah commented 2 years ago

Hallo mr @bennomeier and mr @JeroenvO .

Why i can read .trc file. there's any error when executing the code. Or can you give me a sample of proper .trc file? An error sample below. image

Thank you. RF

JeroenvO commented 2 years ago

Here a TRC file from my oscilloscope: C1--XX--00000.trc.txt

JeroenvO commented 2 years ago

Otherwise, supply your file and i'll look into it

bennomeier commented 2 years ago

Hi @ronnifadhlillah,

here is a link to a .trc file that should work: https://www.dropbox.com/s/4mqt8mq5ll4b9dk/C1180430_shot100000.trc?dl=0

If problems persist, and you are sure that your file is ok, you may want to try changing the endianness in the parse function from ">" to "<" - of send the file to @JeroenvO

ronnifadhlillah commented 2 years ago

Hallo mr @JeroenvO and mr @bennomeier .

here's my trc fil. there's something wrong with my trc file. Let me know if there's something weird. https://drive.google.com/file/d/1XjU4lCiYG0DdS_xwLckDVO6GQmoHS-KB/view?usp=sharing

bennomeier commented 2 years ago

I get the same error that you do. I would suspect that the file is not formatted in the way that lecroyparser expects, which is according to the LECROY_2_2 Template (details here https://cdn.teledynelecroy.com/files/manuals/dda-rcm-e10.pdf ). Can you check your scope's manual for the formatting ot the trc file? Where / from which scope did you get the file?

ronnifadhlillah commented 2 years ago

Hallo mr. @bennomeier .

I got the file generated from EXFO OTDR. Have you ever any experince with that file or EXFO .trc file? or any solution to conveert my .trc file to LECROY_2_2 template or .SOR file. ?

bennomeier commented 2 years ago

Oh dear, that is not going to work. You have to check the manufacturer's specification (if that is available at all), and then work your way thorugh this, or find someone who is able to work through it. This is clearly beyond what lecroyparser is made for. Good luck!

ronnifadhlillah commented 2 years ago

Thank you mr @bennomeier and mr @JeroenvO