Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

canMessageTimetable

Convert CAN messages into timetable

Syntax

msgtimetable = canMessageTimetable(msg)
msgtimetable = canMessageTimetable(msg,database)

Description

example

msgtimetable = canMessageTimetable(msg) creates a CAN message timetable from existing raw messages. The output message timetable contains the raw message information (ID, Extended, Data, etc.) from the messages. If CAN message objects are input which contain decoded information, that decoding is retained in the CAN message timetable.

example

msgtimetable = canMessageTimetable(msg,database) uses the database to decode the message names and signals for the timetable along with the raw message information. Specify multiple databases in an array to decode message names and signals in the timetable within a single call.

In many cases, using CAN message information in a timetable format can provide better performance than using CAN message objects.

Examples

collapse all

Convert log block output to a CAN message timetable.

 load LogBlockOutput.mat
 db = canDatabase('myDatabase.dbc')
 msgTimetable = canMessageTimetable(canMsgs,db)

Convert legacy CAN message objects to a CAN message timetable.

msgTimetable = canMessageTimetable(canMsgs);

Decode an existing CAN message timetable with a database.

db = canDatabase('myDatabase.dbc')
msgTimetable = canMessageTimetable(msgTimetable,db)

Input Arguments

collapse all

Raw CAN messages, specified as a CAN message timetable, an array of CAN message objects, or a CAN message structure from the CAN log block.

CAN database, specified as a database handle.

Output Arguments

collapse all

CAN messages returned as a timetable.

See Also

Functions

Introduced in R2017a

Was this topic helpful?