Main Content


Access A2L file



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.


collapse all

Create an A2L file object.

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

  A2L with properties:

                 FileName: 'XCPSIM.a2l'
                 FilePath: 'c:\XCPSIM.a2l'
                SlaveName: 'CPP'
        ProtocolLayerInfo: [1×1 xcp.ProtocolLayerInfo]
                  DAQInfo: [1×1 xcp.DAQInfo]
    TransportLayerCANInfo: [1×1 xcp.TransportLayerCANInfo]
    TransportLayerUDPInfo: [1×1 xcp.TransportLayerUDPInfo]
    TransportLayerTCPInfo: []
                   Events: {'Key T'  '10 ms'  '100ms'  '1ms'  'FilterBypassDaq'  'FilterBypassSt'}
             Measurements: {1×45 cell}
          Characteristics: {'KF2'  'KF3'  'KF4'  'KF5'  'KF6'  'KF7'  'KL1'  'KL2'  'KL5'  'a0'  'b0'  'c0'  'map1'  'map1Counter'  'map4_80_uc'  'testString'}
                EventInfo: [1×6 xcp.Event]
          MeasurementInfo: [45×1 containers.Map]
       CharacteristicInfo: [16×1 containers.Map]
                 AxisInfo: [1×1 containers.Map]
            RecordLayouts: [41×1 containers.Map]
             CompuMethods: [16×1 containers.Map]
                CompuTabs: [0×1 containers.Map]
               CompuVTabs: [2×1 containers.Map]

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.

Introduced in R2013a