getEventInfo

Get event information about specific event from A2L file

Syntax

  • info = getEventInfo(a2lFile,eventName) example

Description

example

info = getEventInfo(a2lFile,eventName) returns information about the specified event from the specified A2L file, and stores it in the structure, info.

Examples

expand all

Get XCP Event Information

Create a handle to parse an A2L file and get information about the 10 ms event.

a2lfile = xcpA2L('C:\XCPSIM.a2l')
info = getEventInfo(a2lfile, '10 ms')
info = 

                    Name: '10 ms'
                    Direction: 'DAQ_STIM'
                   MaxDAQList: 255
                ChannelNumber: 1
             ChannelTimeCycle: 10
              ChannelTimeUnit: 6
              ChannelPriority: 0
    ChannelTimeCycleInSeconds: 0.0100

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.

eventName — XCP event namecharacter string

XCP event name specified as a string. Event name corresponds to the XCP event defined in your A2L file. Make sure the name matches the name specified in the A2L file.

Output Arguments

expand all

info — XCP event informationstring | numeric

XCP event information returned, as strings and numeric values, containing event details such as timing and priority.

Was this topic helpful?