File: vector.rst

package info (click to toggle)
python-can 3.0.0%2Bgithub-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,892 kB
  • sloc: python: 8,014; makefile: 29; sh: 12
file content (35 lines) | stat: -rw-r--r-- 1,008 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Vector
======

This interface adds support for CAN controllers by `Vector`_.

By default this library uses the channel configuration for CANalyzer.
To use a different application, open Vector Hardware Config program and create
a new application and assign the channels you may want to use.
Specify the application name as ``app_name='Your app name'`` when constructing
the bus or in a config file.

Channel should be given as a list of channels starting at 0.

Here is an example configuration file connecting to CAN 1 and CAN 2 for an
application named "python-can"::

    [default]
    interface = vector
    channel = 0, 1
    app_name = python-can

If you are using Python 2.7 it is recommended to install pywin32_, otherwise a
slow and CPU intensive polling will be used when waiting for new messages.


Bus
---

.. autoclass:: can.interfaces.vector.VectorBus

.. autoexception:: can.interfaces.vector.VectorError


.. _Vector: https://vector.com/
.. _pywin32: https://sourceforge.net/projects/pywin32/