주요 콘텐츠

이 페이지는 기계 번역을 사용하여 번역되었습니다. 영어 원문을 보려면 여기를 클릭하십시오.

xcpA2L

A2L 파일 액세스

설명

a2lfile = xcpA2L(filename)는 A2L 파일에 액세스하는 객체를 생성합니다. 해당 객체는 파일 내용을 구문 분석하고 이벤트 및 메저먼트 정보를 확인할 수 있습니다.

예제

예제

모두 축소

A2L 파일 객체를 생성하십시오.

a2lfile = xcpA2L('XCPSIM.a2l')
a2lfile = 

  A2L with properties:

   File Details
                 FileName: 'XCPSIM.a2l'
                 FilePath: 'c:\XCPSIM.a2l'
               ServerName: 'CPP'
                 Warnings: [0×0 string]

   Parameter Details
                   Events: {1×6 cell}
                EventInfo: [1×6 xcp.a2l.Event]
             Measurements: {1×45 cell}
          MeasurementInfo: [45×1 containers.Map]
          Characteristics: {1×16 cell}
       CharacteristicInfo: [16×1 containers.Map]
                 AxisInfo: [1×1 containers.Map]
            RecordLayouts: [41×1 containers.Map]
             CompuMethods: [15×1 containers.Map]
                CompuTabs: [0×1 containers.Map]
               CompuVTabs: [2×1 containers.Map]

   XCP Protocol Details
        ProtocolLayerInfo: [1×1 xcp.a2l.ProtocolLayer]
                  DAQInfo: [1×1 xcp.a2l.DAQ]
    TransportLayerCANInfo: [1×1 xcp.a2l.XCPonCAN]
    TransportLayerUDPInfo: [1×1 xcp.a2l.XCPonIP]
    TransportLayerTCPInfo: [0×0 xcp.a2l.XCPonIP]

입력 인수

모두 축소

A2L 파일 이름으로, 문자형 벡터 또는 string형으로 지정됩니다. 파일 이름에 .a2l로 끝나는 파일을 반드시 제공해야 합니다. 파일 이름과 함께 파일의 부분 경로 또는 전체 경로를 지정할 수도 있습니다.

데이터형: char | string

출력 인수

모두 축소

A2L 파일, xcp.A2L 객체로 반환되며, xcp.A2L Properties를 포함합니다.

버전 내역

R2013a에 개발됨