CAN FD Transmit
R2026bLibraries:
Raspberry Pi Blockset /
Communication
Description
The CAN FD Transmit block transmits messages over a Controller Area Network Flexible Data Rate (CAN FD) interface from a Simulink® model. Use this block to send CAN FD frames from Raspberry Pi® hardware through a configured CAN interface. CAN FD extends classical CAN by enabling larger CAN FD message sizes and higher data rates allowing efficient transmission of high-volume data.
The block supports two input workflows:
Raw CAN FD message transmission using a
uint8vector.Message-based transmission using a structured CAN FD message. Use the CAN FD Pack (Embedded Coder) block to define the message fields.
The block supports CAN FD message sizes up to 64 bytes and allows transmission at higher data rates during the data phase using bit rate switching.
Note
To generate C/C++ code for this block, you must have an Embedded Coder® license.
The CAN FD Transmit block can also transmit classical CAN messages when the interface is configured for CAN FD. To transmit classical CAN messages, do not use bit rate switching and make sure the message size is 8 bytes or less.
For more information on how to enable the SPI interface and configure the MCP2518FD CAN FD controller for CAN FD configuration, see Enable and Configure Raspberry Pi for SPI and CAN FD Communication Using Waveshare 2-CH CAN FD HAT.
Examples
Extended Examples
Ports
Input
Output
Parameters
Extended Capabilities
Version History
Introduced in R2026b



