Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

nodeInfo

Information about CAN database node

Syntax

info = nodeInfo(db)
info = nodeInfo(db,NodeName)

Description

example

info = nodeInfo(db) returns a structure containing information for all nodes found in the database db.

If no matches are found in the database, nodeInfo returns an empty node information structure.

example

info = nodeInfo(db,NodeName) returns a structure containing information for the specified node in the database db.

Examples

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]

Input Arguments

collapse all

CAN database, specified as a CAN database object.

Example: db = canDatabase(_____)

Node name, specified as a character vector or string.

Example: 'AerodynamicControl'

Data Types: char | string

Output Arguments

collapse all

Node information, returned as a structure with these fields:

FieldDescription
NameNode name
CommentText about node

See Also

Functions

Properties

Introduced in R2015b

Was this topic helpful?