xcp.A2L 属性
xcp.A2L 文件对象的属性
使用以下属性检查 xcp.A2L 文件对象设置。使用 xcpA2L 创建一个 A2L 文件对象。
xcp.A2L
FileName 属性将引用的 A2L 文件的名称显示为字符向量。
数据类型: char
FilePath 属性以字符向量形式显示 A2L 文件的完整文件路径(包括 A2L 文件名)。
数据类型: char
ServerName 属性以字符向量形式显示在 A2L 文件中指定的服务器节点的名称。
数据类型: char
存储 A2L 文件解析器抛出的警告。
a2lfile = xcpA2L('XCPSIM.a2l');
a2lfile.Warningsans = 0×0 empty string array
数据类型: string
事件名称,以字符向量元胞数组形式返回。例如:
a2lfile = xcpA2L('XCPSIM.a2l');
a2lfile.Eventsans =
1×6 cell array
{'Key T'} {'10 ms'} {'100ms'} {'1ms'} {'FilterBypassDaq'} {'FilterBypassSt'}数据类型: cell
事件信息,以 xcp.Event 对象的数组形式返回。例如:
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数据类型: xcp.Event
测量变量名称,以字符向量元胞数组形式返回。例如:
a2lfile = xcpA2L('XCPSIM.a2l');
a2lfile.Measurements(10:15)ans =
1×6 cell array
{'FW1'} {'KL1Output'} {'MaxChannel1'} {'MinChannel1'} {'PWM'} {'PWMFiltered'}数据类型: cell
测量变量信息,以 Map 对象形式返回。例如:
a2lfile = xcpA2L('XCPSIM.a2l');
mi = a2lfile.MeasurementInfomi =
Map with properties:
Count: 45
KeyType: char
ValueType: any数据类型: containers.Map
特征变量名称,以字符向量元胞数组形式返回。例如:
a2lfile = xcpA2L('XCPSIM.a2l');
a2lfile.Characteristics(10:15)ans =
1×6 cell array
{'a0'} {'b0'} {'c0'} {'map1'} {'map1Counter'} {'map4_80_uc'}数据类型: cell
特征变量信息,以 Map 对象形式返回。例如:
a2lfile = xcpA2L('XCPSIM.a2l');
ci = a2lfile.CharacteristicInfoci =
Map with properties:
Count: 16
KeyType: char
ValueType: any数据类型: containers.Map
轴信息,以 Map 对象形式返回。例如:
a2lfile = xcpA2L('XCPSIM.a2l');
ai = a2lfile.AxisInfoai =
Map with properties:
Count: 1
KeyType: char
ValueType: any数据类型: containers.Map
特征变量对象的容器,以 containers.Map 对象形式返回。例如:
a2lfile = xcpA2L('XCPSIM.a2l');
rl = a2lfile.RecordLayoutsrl =
Map with properties:
Count: 41
KeyType: char
ValueType: any数据类型: containers.Map
计算方法对象的容器,以 containers.Map 对象形式返回。例如:
a2lfile = xcpA2L('XCPSIM.a2l');
cm = a2lfile.CompuMethodscm =
Map with properties:
Count: 16
KeyType: char
ValueType: any数据类型: containers.Map
用于 interp 的 ComputationTAB(转换表)方法对象的容器,以 containers.Map 对象形式返回。例如:
a2lfile = xcpA2L('XCPSIM.a2l');
ct = a2lfile.CompuTabsct =
Map with properties:
Count: 0
KeyType: char
ValueType: any数据类型: containers.Map
用于 enum 的 ComputationVTAB(动词转换表)方法对象的容器,以 containers.Map 对象形式返回。例如:
a2lfile = xcpA2L('XCPSIM.a2l');
cvt = a2lfile.CompuVTabscvt =
Map with properties:
Count: 2
KeyType: char
ValueType: any数据类型: containers.Map
ProtocolLayerInfo 属性显示一个 xcp.ProtocolLayerInfo 对象,其中包含有关 A2L 文件中定义的服务器的 XCP 协议实现的常规信息。例如:
a2lfile = xcpA2L('XCPSIM.a2l');
pli = a2lfile.ProtocolLayerInfopli =
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数据类型: xcp.ProtocolLayerInfo
DAQ 相关信息,以 DAQInfo 对象形式返回。例如:
a2lfile = xcpA2L('XCPSIM.a2l');
di = a2lfile.DAQInfodi =
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]数据类型: xcp.DAQInfo
CAN 特定传输层信息,以 XCPonCAN 对象形式返回。例如,
a2lfile = xcpA2L('XCPSIM.a2l');
tlci = a2lfile.TransportLayerCANInfotlci =
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]数据类型: xcp.XCPonCAN
UDP 传输层信息,以 XCPonIP 对象形式返回。例如:
a2lfile = xcpA2L('XCPSIM.a2l');
tlui = a2lfile.TransportLayerUDPInfotlui =
XCPonIP with properties:
CommonParameters: [1×1 xcp.a2l.CommonParameters]
TransportLayerInstance: ''
Port: 5555
Address: 2.1307e+09
AddressString: '127.0.0.1'数据类型: xcp.XCPonIP
TCP 传输层信息,以 XCPonIP 对象形式返回。
a2lfile = xcpA2L('XCPSIM.a2l');
tlti = a2lfile.TransportLayerTCPInfotlti =
0×0 XCPonIP array with properties:
CommonParameters
TransportLayerInstance
Port
Address
AddressString数据类型: xcp.XCPonIP
版本历史记录
在 R2013a 中推出
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.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- 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)