Help CenterHelp Center
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
Hai fatto clic su un collegamento che corrisponde a questo comando MATLAB:
Esegui il comando inserendolo nella finestra di comando MATLAB. I browser web non supportano i comandi 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