Repository navigation
Replies: 2 comments
|
import can
with can.LogReader("ascfile.asc") as reader, can.Logger("logfile.log") as writer:
for msg in reader:
writer.on_message_received(msg)Both pick the format from the file extension, so the same code converts between any formats python-can supports ( |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to do the following:
can_logconvert.exe ascfile.asc logfile.log
but I want to do in python instead of the windows command line:
import can
can.logconvert #no attribute logconvert error
How do I use the module from my python script passing in the file handles?
All reactions