Documentation Center

  • Trial Software
  • Product Updates

Data

Set CAN message data

Description

Use the Data property to define your message data in a CAN message.

Characteristics

Usage

CAN message

Read only

Never

Data type

Numeric

Values

The data value is a uint8 array, based on the data length you specify in the message.

Examples

To load data into a message, type:

message.Data = [23 43 23 43 54 34 123 1]

If you are using a CAN database for your message definitions, change values of the specific signals in the message directly.

You can also use the pack function to load data into your message.

See Also

Functions

canMessage, pack

Was this topic helpful?