Main Content

xcpA2L

Access A2L file

Description

a2lfile = xcpA2L(filename) creates an object that accesses an A2L file. The object can parse the contents of the file and view events and measurement information.

example

Examples

collapse all

Create an A2L file object.

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]

Input Arguments

collapse all

A2L file name, specified as a character vector or string. You must provide the file ending .a2l with the name. You can also provide a partial or full path to the file with the name.

Data Types: char | string

Output Arguments

collapse all

A2L file, returned as an xcp.A2L object, with xcp.A2L Properties.

Version History

Introduced in R2013a