Main Content
canMessageReplayBlockStruct
Convert CAN messages for use as CAN Replay block output
Description
formats specified CAN messages for use with the CAN Replay block. The CAN Replay
block requires a specific format for CAN messages, defined by a structure of arrays
containing the ID, Extended, Data, and other message elements.msgstructofarrays
= canMessageReplayBlockStruct(msgs
)
Use this function to assign the formatted message structure to a variable. Then save this variable to a MAT-file. The CAN Replay block mask allows selection of this MAT file and the variable within it, to define the messages to replay in a Simulink® model.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2017a