canMessage
Build CAN message based on user-specified structure
Syntax
Description
creates a CAN message object from the raw message information.message
= canMessage(id
,extended
,datalength
)
creates a CAN FD message. The default message
= canMessage(id
,extended
,datalength
,'ProtocolMode','CAN FD')ProtocolMode
is standard
'CAN'
.
creates a message using the message definition in the specified database. Because
message
= canMessage(candb
,messagename
)ProtocolMode
is defined in the message database, you cannot
specify it as an argument to canMessage
when using a
database.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2009a
See Also
Functions
attachDatabase
|canDatabase
|extractAll
|extractRecent
|extractTime
|pack
|unpack
|transmit
|transmitPeriodic