Help CenterHelp Center
Information about CAN database node
info = nodeInfo(db)
info = nodeInfo(db,NodeName)
example
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
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.
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