Import CAN message log file from third-party tool


message = canMessageImport('file', 'vendor')
message = canMessageImport('file', 'vendor', database)


message = canMessageImport('file', 'vendor') allows you to import a CAN message log file, file, from a third-party vendor, vendor, into Vehicle Network Toolbox™. All the messages in the log file are imported as CAN messages, compatible with MATLAB® and displayed as an array.

message = canMessageImport('file', 'vendor', database) allows you to apply a specify a database handle, database. The information in the specified database is applied to the imported CAN log messages.

Once imported, you can analyze, transmit, or replay these messages.

Input Arguments


Name of the CAN message log file to import.


Name of the vendor whose CAN message log file to import.


Name of the database whose information to attach to the imported log file.

Output Arguments


The message object returned by the function.


To import a log file, type:

message = canMessageImport('MsgLog.asc', 'Vector')

To specify a database name, type:

database = canDatabase('myDatabase.dbc')
message = canMessageImport('MsgLog.txt', 'Kvaser', database)

More About

collapse all


  • You can import message logs only in certain file formats. You can import only ASCII files from Vector and text files from Kvaser.

  • canMessageImport assumes that the information in the imported log file is in a hexadecimal format.

  • canMessageImport assumes that the timestamps in the imported log file are absolute values.

  • To import Vector log files with symbolic message names, specify an appropriate database file in the input arguments.

Was this topic helpful?