FDCAN Write
R2026bLibraries:
STM32 Microcontroller Blockset /
STM32G0xx Based Boards
STM32 Microcontroller Blockset /
STM32G4xx Based Boards
STM32 Microcontroller Blockset /
STM32H5xx Based Boards
STM32 Microcontroller Blockset /
STM32H7xx Based Boards
STM32 Microcontroller Blockset /
STM32L5xx Based Boards
STM32 Microcontroller Blockset /
STM32U5xx Based Boards
STM32 Microcontroller Blockset /
STM32H7RSxx Based Boards
STM32 Microcontroller Blockset /
STM32N6xx Based Boards
Description
The FDCAN Write block writes messages to the Controller Area Network (CAN) network connected to the hardware.
The FDCAN Write block accepts a CAN data that needs to be sent when
operation mode is set to Data. The block accepts a 1-D array of type
uint8 when data format is set to Raw data.
The block accepts input as Simulink® bus signal when data format is set to CAN Message. To extract
data from Simulink bus signal, connect it to FDCAN pack block.
Select the Operation mode and its properties using the block parameters dialog box. Configure the properties of FDCAN module in the configuration parameters.
Examples
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"stm32g0xxblockslib/FDCAN Write"
"stm32g4xxblockslib/FDCAN Write"
"stm32h5xxblockslib/FDCAN Write"
"stm32h7xxblockslib/FDCAN Write"
"stm32l5xxblockslib/FDCAN Write"
"stm32u5xxblockslib/FDCAN Write"
"stm32h7rsxxblockslib/FDCAN Write"
"stm32n6xxblockslib/FDCAN Write"
Example: add_block("stm32g0xxblockslib/FDCAN Write","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2023a

