본문 바로가기

Tech. Post/개발 환경 설정

[VisualStudio] Vector XL Driver 설치 및 DLL 적용하기

Vector는 CAN, CAN FD, LIN 등 자동차 내부 통신 프로토콜과 관련해

Interface (VN15XX, 16XX .etc)와 Library (XL API)를 제공한다. 

 

본 포스트는 Visual Studio에 XlApi를 설치 하는 과정을 설명한다.

 

순서

1. XL Driver Library 다운로드 

2. .zip 파일 압축 해제 후 Driver setup.exe 파일 실행 

3. Visual Studio에 Vector.XlApi.dll, vxlapi_NET.dll 참조 추가

4. Visual Studio 적용 완료

 

*XL Driver Library 관련 Document는 링크 참조  


1. XL Driver Library 다운로드

XL Driver Library 20.30.14

 

Download

Vector supplies demos, service packs, driver updates and other downloads for Vector products as well as documents for software, hardware and automotive networking topics.

www.vector.com

 

2. .zip 파일 압축 해제 후 Driver setup.exe 파일 실행

(Setup.exe 실행)

 

3. Visual Studio에 Vector.XlApi.dll, vxlapi_NET.dll 참조 추가

(기본설치경로) C:\Users\Public\Documents\Vector\XL Driver Library 20.30.14\exec\NET 폴더에서 
 Vector.XlApi.dll 파일과 vxlapi_NET.dll 을 Visual Studio Project > 솔루션탐색기 > 종속성 (우클릭)  참조 추가

(Vector.XlApi.dll & vxlapi_NET.dll)


Visual Studio 프로젝트 참조 추가 과정

3-1. Project > 종속성 > 우클릭 > 프로젝트 참조 추가 (선택)

3-2. 참조 관리자 > (좌측 탭) 찾아보기 > (하단) 찾아보기 > (기본설치경로) "C:\Users\Public\Documents\Vector\XL Driver Library 20.30.14\exec\NET"  > Vector.XlApi.dll & vxlapi_NET.dll 불러오기 및 선택 후 확인 

(Vector.XlApi.dll & vxlapi_NET.dll)


 

4. Visual Studio 적용 완료

 

using vxlapi_NET;
using Vector.XlApi;

XLDriver xlDriver = new XLDriver();
Vector.XlApi.XlFrChannelCfgMode channelCfgMode;

적용 완료 !