User`s guide

Vehicle Network Communication Examples
1-23
can.Message handle
Package: can
Properties:
ID: 500
Extended: 0
Name: ''
Database: []
Error: 0
Remote: 0
Timestamp: 709.0403
Data: [25 0 0 0 0 0 0 0]
Signals: []
Methods, Events, Superclasses
3
To check if the channel received the message, type:
canch2
MATLAB returns the channel properties, and the status indicates that the channel
received one message:
.
.
.
Status: Online.
0 messages available to RECEIVE.
0 messages transmitted since last start.
1 messages received since last start.
Refer to the receive function to understand more about its input arguments.
Unpack a Message
After your channel receives a message, specify how to unpack the message and interpret
the data in the message. Use unpack to specify the parameters for unpacking a message:
value = unpack(messagein, 0, 16, 'LittleEndian', 'int16')
The unpacked message returns a value based on your parameters:
value =