MATLAB 帮助中心
访问 A2L 文件
a2lfile = xcpA2L(filename)
a2lfile = xcpA2L(filename) 创建一个用于访问 A2L 文件的对象。该对象可以解析该文件的内容并查看事件和测量变量信息。
a2lfile
filename
示例
全部折叠
创建一个 A2L 文件对象。
a2lfile = xcpA2L('XCPSIM.a2l')
a2lfile = A2L with properties: File Details FileName: 'XCPSIM.a2l' FilePath: 'c:\XCPSIM.a2l' ServerName: 'CPP' Warnings: [0×0 string] Parameter Details Events: {1×6 cell} EventInfo: [1×6 xcp.a2l.Event] Measurements: {1×45 cell} MeasurementInfo: [45×1 containers.Map] Characteristics: {1×16 cell} CharacteristicInfo: [16×1 containers.Map] AxisInfo: [1×1 containers.Map] RecordLayouts: [41×1 containers.Map] CompuMethods: [15×1 containers.Map] CompuTabs: [0×1 containers.Map] CompuVTabs: [2×1 containers.Map] XCP Protocol Details ProtocolLayerInfo: [1×1 xcp.a2l.ProtocolLayer] DAQInfo: [1×1 xcp.a2l.DAQ] TransportLayerCANInfo: [1×1 xcp.a2l.XCPonCAN] TransportLayerUDPInfo: [1×1 xcp.a2l.XCPonIP] TransportLayerTCPInfo: [0×0 xcp.a2l.XCPonIP]
A2L 文件名,指定为字符向量或字符串。您必须提供以 .a2l 结尾的文件名。您还可以通过名称提供文件的部分或完整路径。
.a2l
数据类型: char | string
char
string
xcp.A2L
A2L 文件,以具有 xcp.A2L 属性 的 xcp.A2L 对象形式返回。
在 R2013a 中推出
xcpChannel
getEventInfo
getMeasurementInfo
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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处