Main Content

linMessageTimetable

Convert LIN messages into timetable

Since R2025a

Description

LINmsgs = linMessageTimetable(LINMsgRaw,LINdbObj) decodes messages based on the specified LIN Database object. The raw messages are those read from an MDF file or from a BLF file without decoding. The message names and signals are decoded into the returned timetable along with the raw message information.

LINmsgs = linMessageTimetable(LINMsgRaw) reformats a timetable of raw ASAM LIN messages received from mdfRead into a Vehicle Network Toolbox™ LIN message timetable. You can convert this into a timetable of decoded LIN message by calling this function again with a LIN Database argument.

example

Examples

collapse all

Read and decode LIN messages from BLF and MDF files.

LINdbObj = linDatabase("myDatabase.ldf")
rawmsgs = blfread("Logging_BLF.blf", 2, ProtocolMode="LIN");
LINmsgs = linMessageTimetable(rawmsgs, Database=LINdbObj);
rawmsgs = mdfRead("Logging_MDF.mf4", Channel="Rate_01");
LINmsgs = linMessageTimetable(rawmsgs, Database=LINdbObj);

Input Arguments

collapse all

LIN messages specified as a timetable, created by reading LIN messages from a BLF file without decoding or from reading an MDF file.

Data Types: timetable

Database used for decoding LIN message, specified as a LIN Database object. You can create this Database object with the linDatabase function. You can specify an array of Database objects; where definitions overlap, the last takes precedence.

Data Types: object

Output Arguments

collapse all

LIN message in standard format, returned as a timetable. If the function was called with a LIN Database argument, the messages are decoded accordingly.

Version History

Introduced in R2025a