canlib.kvDevice¶
-
class
canlib.kvDevice.
kvDevice
(ch=None, flags=0, canlibHnd=None, ean=None, serial=None, cardChannel=0)[source]¶ Holds information about a Kvaser CAN device
Parameters: - ch (int) – CANlib channel where the device is currently connected.
- flags (int) – Optional flags such as canlib.canOPEN_EXCLUSIVE.
- canlibHnd – Optional canlib.canlib object, usually creates a new one.
- ean (str) – EAN for the device, e.g. “73-30130-00778-9”. Used instead of ch.
- serial (str) – Optional serial number of the device, can be used in conjuntion with ean.
- cardChannel (int) – Optional local channel on card, can be used in conjunction with ean.
-
cardChannel
()[source]¶ Read card channel number from device
Returns: cardChannel (int) – The local channel on card, first channel is number 0.