Documentation Center

  • Trial Software
  • Product Updates

getMeasurementInfo

Get information about specific measurement from A2L file

Syntax

  • info = getMeasurementInfo(a2lFile,measurementName) example

Description

example

info = getMeasurementInfo(a2lFile,measurementName) returns information about the specified measurement from the specified A2L file, and stores it in the structure, info.

Examples

expand all

Get XCP Measurement Information

Create a handle to parse an A2L file and get information about the BitSlice measurement.

a2lfile = xcpA2L('C:\XCPSIM.a2l')
info = getMeasurementInfo (a2lfile, 'PWM')
info = 

                   Name: 'PWM'
         LongIdentifier: 'Pulse width signal from PWM_level and Triangle'
               DataType: 'UBYTE'
             Conversion: 'HighLow'
             Resolution: 0
               Accuracy: 0
             LowerLimit: 0
             UpperLimit: 255
             ECUAddress: 4951352
    ECUAddressExtension: 0
              ByteOrder: 'MSB_LAST'
            SizeInBytes: 1
          SizeInNibbles: 2
             SizeInBits: 8
             MATLABType: 'uint8'

Input Arguments

expand all

a2lFile — Name of A2L filecharacter string

Name of the A2L file object, specified as a string, used in this connection. Create the A2L file handle using xcpA2L.

measurementName — Name of single XCP measurementcharacter string

Name of a single XCP measurement, specified as a string. Measurement name corresponds to the measurement name defined in your A2L file. Make sure the name matches the name specified in the A2L file

Output Arguments

expand all

info — XCP measurement informationstring | numeric

XCP measurement information, specified as string and numeric values, containing measurement details such as memory address, units, and description.

See Also

|

Was this topic helpful?