This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Import J1939 log file


pgs = j1939ParameterGroupImport(file,vendor,database)



pgs = j1939ParameterGroupImport(file,vendor,database) reads the input file as a CAN message log file from the specified vendor. Using the specified CAN database, the CAN messages are converted into J1939 parameter groups, and assigns the output to the array pgs.


collapse all

Read a CAN message log file, and generate J1939 parameter groups according to a CAN database.

db = canDatabase('MyDatabase.dbc');
pgs = j1939ParameterGroupImport('MsgLog.asc','Vector',db);

Input Arguments

collapse all

CAN message log file, specified as a character vector or string.

Example: 'MyDatabase.dbc'

Data Types: char | string

Vendor file format, specified as a character vector or string. The supported file formats are those defined by Vector and Kvaser.

Example: 'Vector'

Data Types: char | string

CAN database, specified as a database handle.

Output Arguments

collapse all

J1939 parameter groups, returned as a parameter group array.

See Also


Introduced in R2017a