Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 648 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 648 Bytes

python-can-csscan-txt

Read TXT log files from the CSS Electronics CLX000 CAN loggers through python-can.

pip install python-can-csscan-txt
import can

with can.LogReader("00000001.TXT") as reader:
    for msg in reader:
        print(msg)

The logger information from the file header is available through LogFile:

from python_can_csscan_txt import LogFile

with LogFile("00000001.TXT") as reader:
    print(reader.get_metadata())  # id, hardware/firmware revision, session, split, bitrate
    for msg in reader:
        print(msg)