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.

CAN Communication in Simulink

Vehicle network communication in Simulink® using CAN

Blocks

expand all

CAN ConfigurationConfigure parameters for specified CAN device
CAN PackPack individual signals into CAN message
CAN ReceiveReceive CAN messages from specified CAN device
CAN TransmitTransmit CAN message to selected CAN device
CAN UnpackUnpack individual signals from CAN messages
CAN ReplayReplay logged CAN messages
CAN LogLog received CAN messages
CAN FD ConfigurationConfigure parameters for specified CAN FD device
CAN FD PackPack individual signals into message for CAN FD bus
CAN FD UnpackUnpack individual signals from CAN FD messages
CAN FD ReceiveReceive CAN FD messages from specified CAN FD device
CAN FD TransmitTransmit CAN FD message to selected CAN FD device
CAN FD LogLog received CAN FD messages
CAN FD ReplayReplay logged CAN FD messages

Functions

canMessageBusTypeCreate Simulink CAN message bus
canFDMessageBusTypeCreate Simulink CAN FD message bus
canMessageReplayBlockStructConvert CAN messages for use as CAN Replay block output

Topics

CAN Communication Workflows in Simulink

Common CAN model workflows.

Vehicle Network Toolbox Simulink Blocks

Introduction to the Vehicle Network Toolbox™ block library

Open the Vehicle Network Toolbox Block Library

How to access the block library in Simulink.

Build CAN Communication Simulink Models

Examples of using Vehicle Network Toolbox blocks.

Create Custom CAN Blocks

Create custom Receive and Transmit blocks to use with hardware not directly supported by the toolbox.

Featured Examples