canSignalTimetable

Create CAN signal timetable from CAN message timetable

Description

example

sigtimetable = canSignalTimetable(msgtimetable) converts a timetable of CAN message information into individual timetables of signal values. The function returns a structure with a field for each unique message in the timetable. Each field value is a timetable of all the signals in that message. Use this syntax form to convert an entire set of messages in a single function call.

example

sigtimetable = canSignalTimetable(msgtimetable,msgnames) returns signal timetables for only the messages specified by msgnames, which can specify one or more message names. Use this syntax form to quickly convert only a subset of messages into signal timetables.

Examples

collapse all

Create CAN signal timetables from all messages in a CAN message timetable.

sigTable = canSignalTimetable(msgTimetable);

Create CAN signal timetables from only specified messages in a CAN message timetable.

sigTable1 = canSignalTimetable(msgTimetable,'Message1');
sigTable2 = canSignalTimetable(msgTimetable,{'Message1','Message2'});

Input Arguments

collapse all

CAN messages, specified as a timetable.

Message names, specified as a character vector, string, or array.

Data Types: char | string | cell

Output Arguments

collapse all

CAN signals, returned as a structure. The structure field names correspond to the messages of the input, and each field value is a timetable of CAN signals.

Data Types: struct

Introduced in R2017a