Skip to Main Content Skip to Search
Product Documentation

canMessageImport - Import CAN message log file from a third-party vendor tool

Syntax

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

Description

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.

Tips

Input Arguments

file

Name of the CAN message log file to import.

vendor

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

database

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

Output Arguments

message

The message object returned by the function.

Examples

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)

See Also

canDatabase | receive | transmit

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS