nodeInfo
有关 CAN 数据库节点的信息
说明
示例
查看来自所有节点的信息
创建一个 CAN 数据库对象,并查看有关其节点的信息。
db = canDatabase('c:\Database.dbc')
info = nodeInfo(db)
info = 3x1 struct array with fields: Name Comment Attributes AttributeInfo
查看第一个节点的名称。
n = info(1).Name
n = AerodynamicControl
查看来自一个节点的信息
创建一个 CAN 数据库对象,并查看有关其第一个节点的信息,节点名称见上例。
db = canDatabase('c:\Database.dbc') info = nodeInfo(db,'AerodynamicControl')
info = Name: 'AerodynamicControl' Comment: 'This is an AerodynamicControl node' Attributes: {3x1 cell} AttributeInfo: [3x1 struct]
输入参数
db
— CAN 数据库
CAN 数据库对象
CAN 数据库,指定为 CAN 数据库对象。
示例: db = canDatabase(_____)
NodeName
— 节点名称
字符向量 | 字符串
节点名称,指定为字符向量或字符串。
示例: 'AerodynamicControl'
数据类型: char
| string
输出参量
info
— 节点信息
结构体
节点信息,以包含以下字段的结构体形式返回:
字段 | 描述 |
---|---|
Name | 节点名称 |
Comment | 关于节点的文本 |
版本历史记录
在 R2015b 中推出
MATLAB 命令
您点击的链接对应于以下 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:
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)