目录

1 XL-Driver-Library介绍

1.1 System Requirements

2 设备初始化Common Commands

2.1 xlOpenDriver()

2.2 xlGetApplConfig()

2.3 xlSetApplConfig()

2.4 xlGetChannelIndex

2.5 xlGetDriverConfig

2.6 xlOpenPort

2.7 xlClosePort

2.8 xlGetKeymanBoxes

2.9 xlGetSyncTime

2.10 xlGetChannelTime

3 通道激活Channel Setup

3.1 xlActivateChannel()

4 断开连接

4.1 xlDeactivateChannel()

4.2 xlClosePort()

4.3 xlCloseDriver()

5. Common ErrorCodes(部分)

本文对XL-Driver-Library进行基本介绍,并对通用的一些关键接口函数和通用的ErrorCode进行介绍。

附Vector官方提供的XL-Driver-Library应用说明:

Driver Library for the Vector Network Interfaces

XLDriverLibrary说明文档

1 XL-Driver-Library介绍

Vector XL-Driver-Library 是Vector公司提供的官方底层驱动接口库,专门用于与其硬件设备(如VN系列接口卡)进行直接通信。与基于COM-API不同,XL-Driver-Library供应了更底层的硬件访问能力,简单来说就是XL-Driver-Library直接提供了VN系列接口卡的硬件驱动程序接口,上位机软件(如python脚本)通过调用动态链接库(dll)以构建对Vector硬件接口的通信控制,即Python脚本作为直接上位机控制板卡硬件,如下图:

1.1 System Requirements

  • Supported Vector devices

The XL Driver Library is compatible with the following Vector devices:
► CANcardXL/XLe
► CANboardXL Family
► CANcaseXL/XL log
► VN0600 Interface Family
► VN1500 Interface Family
► VN1600 Interface Family
► VN2600 Interface Family
► VN5000 Interface Family
► VN7000 Interface Family
► VN8800 Interface Family
► VN8900 Interface Family
► VX0312/VX1135/VX1161.41

  • Supported operating systems

The XL Driver Library is compatible with the following operating systems:
► Windows 7 (32 bit / 64 bit)
► Windows 8 (32 bit / 64 bit)
► Windows 10 (64 bit)

2 设备初始化Common Commands

设备初始化过程:

2.1 xlOpenDriver()

函数原型XLstatus xlOpenDriver(void)
描述所有的application都需要在最开始先调用此接口以打开设备驱动
posted on 2025-09-14 11:58  ycfenxi  阅读(29)  评论(0)    收藏  举报