This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

getEventInfo

Get event information about specific event from A2L file

Syntax

info = getEventInfo(a2lFile,eventName)

Description

example

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

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 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.

Introduced in R2013a