Vector
-
7. 채널 정보 출력(CAN_FD)C#/XL_Driver 2020. 2. 10. 17:14
CAN_FD의 채널 정보를 포함하는 class 구조는 다음과 같습니다 public class xl_channel_config { public string name; public string transceiverName; public uint articleNumber; public uint serialNumber; public uint[] raw_data; public XLDefine.XL_InterfaceVersion interfaceVersion; public uint driverVersion; public xl_bus_params busParams; public XLDefine.XL_BusTypes connectedBusType; public uint[] reserved; public byte isO..
-
5. 채널 정보 출력C#/XL_Driver 2020. 2. 5. 16:55
앞서 보여드린 4번 게시글의 예제에서 채널의 개수를 확인하는 코드를 보았습니다. 이번 게시글에서는 7개 채널들 각각의 정보를 출력하는 방법을 알아보겠습니다. 우선 driverConfig 클래스의 형태를 알아야 합니다. 구성요소는 아래와 같습니다. (참고) class XLClass 내부에 선언되었습니다 public class xl_driver_config 구조 public class xl_driver_config { public uint dllVersion; public uint channelCount; public uint[] reserved; public xl_channel_config[] channel; public xl_driver_config(); } 위 클래스에서 xl_channel_config..
-
2. OpenDriver, GetDriverConfigC#/XL_Driver 2020. 2. 5. 15:46
vxlapi_NET DLL을 참조하여 사용하게 된다 1. 클래스 구조 public class XLDriver XL Driver API의 기능들이 구현되어있는 클래스 public class XLDefine const 상수와 enum 구조로 이루어진 클래스 enum XL_Status 가 구현되어 XLDriver 클래스에서 대부분의 메소드의 반환형으로 사용된다 Vector 사에서 제공하는 예제 코드를 살펴보겠습니다. 편의상 매 코드마다 단계별로 변수와 함수들을 추가해가며 예제를 보여드리겠습니다. 2. 샘플 코드_준비 using System; using System.Threading; using Microsoft.Win32.SafeHandles; using vxlapi_NET; namespace XLpracti..
-
1. XL 드라이버 준비물 및 지원 정보C#/XL_Driver 2020. 2. 5. 14:35
살면서 처음 만나는 분야와 처음 보는 라이브러리입니다. 부족하더라도 최대한 열심히 정리해보겠습니다. 공식 API 문서는 다음 주소에서 다운로드하실 수 있습니다 공식 홈페이지 https://www.vector.com/int/en/products/products-a-z/libraries-drivers/xl-driver-library/ XL-Driver-Library | Vector The XL-Driver-Library supports LIN (Specification 1.3, 2.0 and 2.1) with Master and Slave network nodes. To implement a LIN Master the scedule including the timing has to be realised in..