帮助中心帮助中心
有关 CAN 报文中信号的信息
SigInfo = signalInfo(candb,msgName)
SigInfo = signalInfo(candb,id,extended)
SigInfo = signalInfo(candb,id,extended,signalName)
示例
SigInfo = signalInfo(candb,msgName) 返回指定数据库 candb 中指定 CAN 报文 msgName 中信号的信息。
SigInfo
candb
msgName
SigInfo = signalInfo(candb,id,extended) 返回指定数据库 candb 中具有指定标准或扩展 ID id 的报文中信号的信息。
id
extended
SigInfo = signalInfo(candb,id,extended,signalName) 返回指定数据库 candb 中具有指定标准或扩展 ID id 的报文中指定信号 'signalName' 的信息。
signalName
'signalName'
全部折叠
从报文 'Battery_Voltage' 获取信号信息。
'Battery_Voltage'
SigInfo = signalInfo(candb,'Battery_Voltage');
从 ID 为 196608 的报文中获取信号信息。
196608
SigInfo = signalInfo(candb,196608,true);
从报文 196608 中获取名为 'BatVlt' 的信号的信息。
'BatVlt'
SigInfo = signalInfo(candb,196608,true,'BatVlt');
CAN 数据库,指定为 CAN 数据库对象,其中包含您要了解其信息的信号。
示例: candb = canDatabase('C:\Database.dbc')
candb = canDatabase('C:\Database.dbc')
报文名称,指定为字符向量或字符串。请指定您要了解其信号信息的报文名称。
示例: 'Battery_Voltage'
数据类型: char | string
char
string
报文标识符,指定为数值。请指定您要了解其信号信息的报文数值标识符。
示例: 196608
true
false
扩展报文指示符,指定为 true 或 false。指示报文 ID 是标准类型还是扩展类型。如果为扩展类型,则使用逻辑值 true;如果为标准类型,则使用 false。
示例: true
数据类型: logical
logical
信号的名称,指定为字符向量或字符串。请指定您要了解其信息的信号名称。
示例: 'BatVlt'
信号信息,以结构体或结构体数组形式返回。
数据类型: struct
struct
在 R2009a 中推出
canDatabase
canMessage
messageInfo
您点击的链接对应于以下 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