분류 전체보기
-
마리아DB 연결하기 1Java/Maria DB 2020. 2. 8. 18:03
자바 프로젝트를 위해 마리아 DB를 사용해야 할 상황이 생겼다. 마리아 DB 설치를 완료했다고 생각하고 글을 작성하겠습니다. 자바 소스코드에서 마리아 DB와 연결하려면 마리아 DB의 JDBC 파일(Connector)이 필요합니다 https://downloads.mariadb.org/connector-java/+releases/ MariaDB Connector/J Releases - MariaDB MariaDB Connector/J - All Releases MariaDB Connector/J is used to connect applications developed in Java to MariaDB and MySQL databases using the standard JDBC API. The client..
-
6. 채널 정보 출력 2 ☆보완필요☆C#/XL_Driver 2020. 2. 5. 17:53
이전 게시글에서 driverConfig.channel 배열에 접근하여 각 채널의 정보를 읽어보았다 각 채널마다 설정된 비트레이트, 샘플 레이트 등 추가적인 정보를 확인하는 방법을 알아보자 이전 게시글에서 보았던 xl_channel_config 클래스의 구조 중에서 public class xl_channel_config { ... 생략 public xl_bus_params busParams; ... 생략 } xl_bus_params 클래스를 멤버로 갖고 있음을 알 수 있는데, 위 클래스의 구조를 살펴보면 아래와 같다 public class xl_bus_params { public XLDefine.XL_BusTypes busType; public xl_can_bus_params dataCan; public ..
-
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..
-
4. channelCountC#/XL_Driver 2020. 2. 5. 16:40
현재 연결된 CANoe 장비의 Channel 개수를 확인할 수 있는 함수입니다. 2번 게시글의 GetDriverConfig 함수의 호출 이후 사용할 수 있으며 코드는 아래와 같습니다 코드 예제 using System; using System.Threading; using Microsoft.Win32.SafeHandles; using vxlapi_NET; namespace XLpractice { class Class1 { // Driver access through XLDriver (wrapper) private static XLDriver CANDemo = new XLDriver(); // Driver configuration private static XLClass.xl_driver_config dri..
-
3. dllVersionC#/XL_Driver 2020. 2. 5. 16:35
dll 파일의 버전을 확인할 수 있는 함수입니다 앞선 예제의 GetDriverConfig 함수를 호출하여 driverConfig에 드라이버 정보를 넣은 이후 호출할 수 있고 따라서 예제코드는 아래와 같습니다 예제코드 using System; using System.Threading; using Microsoft.Win32.SafeHandles; using vxlapi_NET; namespace XLpractice { class Class1 { // Driver access through XLDriver (wrapper) private static XLDriver CANDemo = new XLDriver(); // Driver configuration private static XLClass.xl_driv..
-
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..