帮助中心帮助中心
本页翻译不是最新的。点击此处可查看最新英文版本。
导入 J1939 日志文件
pgs = j1939ParameterGroupImport(file,vendor,database)
示例
pgs = j1939ParameterGroupImport(file,vendor,database) 将输入文件作为来自指定供应商的 CAN 报文日志文件读取。通过使用指定的 CAN 数据库,CAN 报文会转换为 J1939 参数组并赋给时间表 pgs。
pgs
file
vendor
database
全部折叠
读取一个 CAN 报文日志文件,并根据 CAN 数据库生成 J1939 参数组。
db = canDatabase('MyDatabase.dbc'); pgs = j1939ParameterGroupImport('MsgLog.asc','Vector',db);
CAN 报文日志文件,指定为字符向量或字符串。
示例: 'MyDatabase.dbc'
'MyDatabase.dbc'
数据类型: char | string
char
string
'Kvaser'
'Vector'
供应商文件格式,指定为字符向量或字符串。支持的文件格式是 Vector 和 Kvaser 定义的格式。
示例: 'Vector'
CAN 数据库,指定为数据库句柄。
J1939 参数组,以参数组的时间表形式返回。
在 R2017a 中推出
canDatabase
j1939ParameterGroupTimetable
j1939SignalTimetable
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office