Replies: 1 comment 1 reply
-
You can either create a VectorBus instance with multiple channels: |
Beta Was this translation helpful? Give feedback.
1 reply
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 am using a VN1630, and I want to record a CAN log of 2 or more channels, I know how to record data from only one channel, for this I use the example given example in the documentation.
from can import Notifier, SizedRotatingLogger
from can.interfaces.vector import VectorBus
bus = VectorBus(channel=[0], app_name="CANape", fd=True)
logger = SizedRotatingLogger(
base_filename="my_logfile.asc",
max_bytes=5 * 1024 ** 2, # =5MB
)
logger.rollover_count = 23 # start counter at 23
notifier = Notifier(bus=bus, listeners=[logger])
Beta Was this translation helpful? Give feedback.
All reactions