8devices Korlan USB2CAN Kullanıcı Kılavuzu - Sayfa 14
Kayıt Ekipmanları 8devices Korlan USB2CAN için çevrimiçi göz atın veya pdf Kullanıcı Kılavuzu indirin. 8devices Korlan USB2CAN 15 sayfaları. High quality isolated usb to can interface
Ayrıca 8devices Korlan USB2CAN için: Kullanıcı Kılavuzu (17 sayfalar)
You can run multiple instances of kcan.exe on your Windows computer to control multiple Korlan
USB2CAN devices. Make sure you select the proper device ID and set the correct bit rates.
THE Korlan USB2CAN test application is implemented in Python and relies on a versatile python-can library.
8devices provide the source code of kcan.exe under a very friendly license for your reference and
experiments.
4.3 Python programing examples for Windows
You will require a CANAL DLL library from the 8devices WEB site. It's been provided for 64 and 32-bit
environments
https://www.8devices.com/media/products/usb2can_korlan/downloads/korlan_python-can_examples.zip
Examples are based on python-can library programming examples and are slightly modified, adding Korlan
USB2CAN specific information and providing an explicit path to the usb2can.dll library.
You will need to install a python-can library using your favorite Python package installer.
send_one_korlan.py - sends a single CAN bus message.
import can
with can.interface.Bus(bustype="usb2can", channel="9508bbcc", bitrate=1000000, dll='./
usb2can.dll') as bus:
msg = can.Message(arbitration_id=0xC0FFEE, data=[0, 25, 0, 1, 3, 1, 4, 1],
is_extended_id=True)
try:
bus.send(msg)
print(f"Message sent on {bus.channel_info}")
except can.CanError:
print("Message NOT sent")
KORLAN USB2CAN
USER GUIDE
14