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.

ID

Identifier for CAN message

Description

The ID property represents a numeric identifier for a CAN message.

Characteristics

Usage

CAN message

Read only

Always

Data type

Numeric

Values

The ID value must be a positive integer from:

  • 0 through 2047 for a standard identifier

  • 0 through 536,870,911 for an extended identifier

You can also specify a hexadecimal value using the hex2dec function.

Examples

To configure a message ID to a standard identifier of value 300 and a data length of eight bytes, type:

message = canMessage(300, false, 8)

See Also

Functions

canMessage

Properties

Extended

Was this topic helpful?