xcp.A2L Properties
Properties of thexcp.A2L
file object
Use the following properties to examinexcp.A2L
file object settings. UsexcpA2L
to create an A2L-file object.
xcp.A2L
FileName
—Name of referenced A2L file
char
TheFileName
property displays the name of the referenced A2L file as a character vector.
Data Types:char
FilePath
—Path of A2L file
char
TheFilePath
property displays the full file path to the A2L file, including the A2L-file name, as a character vector.
Data Types:char
ServerName
—Name of connected server
char
TheServerName
property displays the name of the server node as specified in the A2L file, as a character vector.
Data Types:char
Warnings
—Warnings from A2L file generation
string
Stores warnings thrown by the A2L file parser.
a2lfile = xcpA2L('XCPSIM.a2l'); a2lfile.Warnings
ans = 0×0 empty string array
Data Types:string
Events
—Event names
cell
Event names, returned as a cell array of character vectors. For example:
a2lfile = xcpA2L('XCPSIM.a2l'); a2lfile.Events
ans = 1×6 cell array {'Key T'} {'10 ms'} {'100ms'} {'1ms'} {'FilterBypassDaq'} {'FilterBypassSt'}
Data Types:cell
EventInfo
—Event information
array ofxcp.Event
object
Event information, returned as an array ofxcp.Event
objects. For example:
a2lfile = xcpA2L('XCPSIM.a2l');ei = a2lfile.EventInfo(1)
ei = Event with properties: Name: 'Key T' Direction: 'DAQ' MaxDAQList: 255 ChannelNumber: 0 ChannelTimeCycle: 0 ChannelTimeUnit: 6 ChannelPriority: 0 ChannelTimeCycleInSeconds: 0
Data Types:xcp.Event
Measurements
—Measurement names
cell
Measurement names, returned as a cell array of character vectors. For example:
a2lfile = xcpA2L('XCPSIM.a2l');a2lfile.Measurements(10:15)
ans = 1×6 cell array {'FW1'} {'KL1Output'} {'MaxChannel1'} {'MinChannel1'} {'PWM'} {'PWMFiltered'}
Data Types:cell
MeasurementInfo
—Measurement information
containers.Map
object
Measurement information, returned as a Map object. For example:
a2lfile = xcpA2L('XCPSIM.a2l');mi = a2lfile.MeasurementInfo
mi = Map with properties: Count: 45 KeyType: char ValueType: any
Data Types:containers.Map
Characteristics
—Names of characteristics
cell
Names of characteristics, returned as a cell array of character vectors. For example:
a2lfile = xcpA2L('XCPSIM.a2l');a2lfile.Characteristics(10:15)
ans = 1×6 cell array {'a0'} {'b0'} {'c0'} {'map1'} {'map1Counter'} {'map4_80_uc'}
Data Types:cell
CharacteristicInfo
—Characteristic information
containers.Map
object
Characteristic information, returned as aMap
对象。例如:
a2lfile = xcpA2L('XCPSIM.a2l');ci = a2lfile.CharacteristicInfo
ci = Map with properties: Count: 16 KeyType: char ValueType: any
Data Types:containers.Map
AxisInfo
—Axis information
containers.Map
object
Axis information, returned as aMap
对象。例如:
a2lfile = xcpA2L('XCPSIM.a2l');ai = a2lfile.AxisInfo
ai = Map with properties: Count: 1 KeyType: char ValueType: any
Data Types:containers.Map
RecordLayouts
—Container for characteristic objects
containers.Map
object
Container for characteristic objects, returned as acontainers.Map
对象。例如:
a2lfile = xcpA2L('XCPSIM.a2l');rl = a2lfile.RecordLayouts
rl = Map with properties: Count: 41 KeyType: char ValueType: any
Data Types:containers.Map
CompuMethods
—容器对象计算方法
containers.Map
object
容器对象计算方法,受潮湿腐烂urned as acontainers.Map
对象。例如:
a2lfile = xcpA2L('XCPSIM.a2l');cm = a2lfile.CompuMethods
cm = Map with properties: Count: 16 KeyType: char ValueType: any
Data Types:containers.Map
CompuTabs
—Container for ComputationTAB method objects
containers.Map
object
Container for ComputationTAB (conversion table) method objects used forinterp
,受潮湿腐烂urned as acontainers.Map
对象。例如:
a2lfile = xcpA2L('XCPSIM.a2l');ct = a2lfile.CompuTabs
ct = Map with properties: Count: 0 KeyType: char ValueType: any
Data Types:containers.Map
CompuVTabs
—Container for ComputationVTAB method objects
containers.Map
object
Container for ComputationVTAB (verbal conversion table) method objects used forenum
,受潮湿腐烂urned as acontainers.Map
对象。例如:
a2lfile = xcpA2L('XCPSIM.a2l');cvt = a2lfile.CompuVTabs
cvt = Map with properties: Count: 2 KeyType: char ValueType: any
Data Types:containers.Map
ProtocolLayerInfo
—Protocol layer information
xcp.ProtocolLayerInfo
object
TheProtocolLayerInfo
property displays anxcp.ProtocolLayerInfo
object containing general information about the XCP protocol implementation of the server as defined in the A2L file. For example:
a2lfile = xcpA2L('XCPSIM.a2l');pli = a2lfile.ProtocolLayerInfo
pli = ProtocolLayerInfo with properties: AddressGranularity: 'ADDRESS_GRANULARITY_BYTE' ByteOrder: 'BYTE_ORDER_MSB_LAST' MaxCTO: 8 MaxDTO: 8 T1: 1000 T2: 200 T3: 0 T4: 0 T5: 0 T6: 0 T7: 0
Data Types:xcp.ProtocolLayerInfo
DAQInfo
—DAQ related information
xcp.DAQInfo
object
DAQ related information, returned as aDAQInfo
对象。例如:
a2lfile = xcpA2L('XCPSIM.a2l');di = a2lfile。DAQInfo
di = DAQInfo with properties: AddressExtension: 'ADDRESS_EXTENSION_FREE' ConfigType: 'DYNAMIC' GranularityODTEntrySizeDAQ: 'GRANULARITY_ODT_ENTRY_SIZE_DAQ_BYTE' IdentificationFieldType: 'IDENTIFICATION_FIELD_TYPE_ABSOLUTE' MaxDAQ: 0 MaxEventChannels: 6 MaxODTEntrySizeDAQ: 7 MinDAQ: 0 OptimizationType: 'OPTIMISATION_TYPE_DEFAULT' OverloadIndication: 'OVERLOAD_INDICATION_PID' STIM: [1×1 struct] PrescalerSupported: 'PRESCALER_SUPPORTED' ResumeSupported: 'RESUME_NOT_SUPPORTED' Timestamp: [1×1 struct]
Data Types:xcp.DAQInfo
TransportLayerCANInfo
—CAN specific transport layer information
xcp.XCPonCAN
object
CAN specific transport layer information, returned as anXCPonCAN
对象。For example,
a2lfile = xcpA2L('XCPSIM.a2l');tlci = a2lfile.TransportLayerCANInfo
tlci = XCPonCAN with properties: CommonParameters: [1×1 xcp.a2l.CommonParameters] TransportLayerInstance: '' CANIDBroadcast: [] CANIDClient: 1 CANIDClientIsExtended: 0 CANIDServer: 2 CANIDServerIsExtended: 0 BaudRate: 500000 SamplePoint: 62 SampleRate: SINGLE BTLCycles: 8 SJW: 1 SyncEdge: SINGLE MaxDLCRequired: [] MaxBusLoad: [] MeasurementSplitAllowed: [] CANFD: [1×0 xcp.a2l.CANFD] OptionalTLSubCmd: [0×0 xcp.a2l.OptionalCANTLSubCmd]
Data Types:xcp.XCPonCAN
TransportLayerUDPInfo
—UDP transport layer information
xcp.XCPonIP
object
UDP transport layer information, returned as anXCPonIP
对象。例如:
a2lfile = xcpA2L('XCPSIM.a2l');tlui = a2lfile.TransportLayerUDPInfo
tlui = XCPonIP with properties: CommonParameters: [1×1 xcp.a2l.CommonParameters] TransportLayerInstance: '' Port: 5555 Address: 2.1307e+09 AddressString: '127.0.0.1'
Data Types:xcp.XCPonIP
TransportLayerTCPInfo
—TCP transport layer information
xcp.XCPonIP
object
TCP transport layer information, returned as aXCPonIP
对象。
a2lfile = xcpA2L('XCPSIM.a2l');tlti = a2lfile.TransportLayerTCPInfo
tlti = 0×0 XCPonIP array with properties: CommonParameters TransportLayerInstance Port Address AddressString
Data Types:xcp.XCPonIP
Version History
See Also
Functions
Properties
External Websites
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina(Español)
- Canada(English)
- United States(English)
Europe
- Belgium(English)
- Denmark(English)
- Deutschland(Deutsch)
- España(Español)
- Finland(English)
- France(Français)
- Ireland(English)
- Italia(Italiano)
- Luxembourg(English)
- Netherlands(English)
- Norway(English)
- Österreich(Deutsch)
- Portugal(English)
- Sweden(English)
- Switzerland
- United Kingdom(English)