Main Content

getMeasurementInfo

Get information about specific measurement from A2L file

Description

example

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

Examples

collapse all

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

a2lfile = xcpA2L('C:\XCPSIM.a2l')
info = getMeasurementInfo(a2lfile,'channel1')
info =   Measurement with properties:

             Resolution: 0
               Accuracy: 0
            LocDataType: 'FLOAT32_IEEE'
                   Name: 'channel1'
         LongIdentifier: 'FLOAT demo signal (sine wave)'
             ECUAddress: 1155080
    ECUAddressExtension: 0
             Conversion: [1×1 xcp.CompuMethodRational]
              Dimension: 1
             LowerLimit: -1.0000e+12
             UpperLimit: 1.0000e+12
                BitMask: []

Input Arguments

collapse all

A2L file, specified as an xcp.A2L object, used in this connection. You can create an xcp.A2L file object using xcpA2L.

Name of a single XCP measurement specified as a character vector or string. Make sure measurementName matches the corresponding measurement name defined in your A2L file.

Data Types: char | string

Output Arguments

collapse all

XCP measurement information, returned as an xcp.Measurement object, containing measurement details such as memory address, identifier, and limits.

Version History

Introduced in R2013a