canMessageImport
Import CAN messages from third-party log file
Syntax
Description
imports CAN messages from the log file, message
= canMessageImport(file
,vendor
)file
, from a third-party
vendor, vendor
. All the messages in the log file are imported as
an array of CAN message objects, or a cell array with one channel per element.
After importing, you can analyze, transmit, or replay these messages.
canMessageImport
assumes that the information in the imported
log file is in a hexadecimal format, and that the timestamps in the imported log
file are absolute values.
message = canMessageImport(___,'OutputFormat','timetable')
returns a timetable of messages. This is the recommended output format for optimal
performance and representation of CAN messages within MATLAB®. The default is to return an array of CAN messages.
message = canMessageImport(___,'ChannelID',
returns data for only the specified channel, chanID
)chanID
. By default,
all channels are returned.