| Contents | Index |
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.
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.
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. |
message |
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)canDatabase | receive | transmit

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 |