MATLAB 帮助中心
Information about CAN database node
info = nodeInfo(db)
info = nodeInfo(db,NodeName)
info = nodeInfo(db) returns a structure containing information for all nodes found in the database db.
info
db
If no matches are found in the database, nodeInfo returns an empty node information structure.
nodeInfo
example
info = nodeInfo(db,NodeName) returns a structure containing information for the specified node in the database db.
NodeName
collapse all
Create a CAN database object, and view information about its nodes.
db = canDatabase('c:\Database.dbc') info = nodeInfo(db)
info = 3x1 struct array with fields: Name Comment Attributes AttributeInfo
View name of first node.
n = info(1).Name
n = AerodynamicControl
Create a CAN database object, and view information about its first node, listed in the previous example.
db = canDatabase('c:\Database.dbc') info = nodeInfo(db,'AerodynamicControl')
info = Name: 'AerodynamicControl' Comment: 'This is an AerodynamicControl node' Attributes: {3x1 cell} AttributeInfo: [3x1 struct]
CAN database, specified as a CAN database object.
Example: db = canDatabase(_____)
db = canDatabase(_____)
Node name, specified as a character vector or string.
Example: 'AerodynamicControl'
'AerodynamicControl'
Data Types: char | string
char
string
Node information, returned as a structure with these fields:
Name
Comment
Introduced in R2015b
attributeInfo
messageInfo
signalInfo
canDatabase
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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处