Main Content

getEventInfo

Get event information about specific event from A2L file

Description

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

example

Examples

collapse all

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 = 
  Event with properties:
                    Name: '10 ms'
                    Direction: 'DAQ_STIM'
                   MaxDAQList: 255
                ChannelNumber: 1
             ChannelTimeCycle: 10
              ChannelTimeUnit: 6
              ChannelPriority: 0
    ChannelTimeCycleInSeconds: 0.0100

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.

XCP event name, specified as a character vector or string. Make sure eventName matches the corresponding event name defined in your A2L file.

Output Arguments

collapse all

XCP event information, returned as xcp.Event object, containing event details such as timing and priority.

Version History

Introduced in R2013a