| Contents | Index |
| On this page… |
|---|

This workflow represents the most common CAN Transmit model. Adjust your model as needed. For more workflow examples, see Building Simulink Models to Transmit and Receive Messages and the Vehicle Network Toolbox demos.
Use a Mux block to combine every message from the source if they are transmitted at the same rate.
Use one CAN Transmit block for each configured Mux block.

For workflow examples, see Building Simulink Models to Transmit and Receive Messages and the Vehicle Network Toolbox demos.
Set up filters to process only relevant messages. This ensures optimal simulation performance.
Do not set up filters if you need to parse all bus communications.
Set up your CAN Unpack block:
In a function-call triggered subsystem if you want to unpack every message received by your CAN Receive block.
Without a function-call triggered subsystem if you
want to unpack only the most recent message received by your CAN Receive block.
Set up this
system if your receive block is filtering for a single message.
For any downstream processing using received messages, include blocks:
Within the function-call subsystem if your downstream process must respond to all messages received in a single timestep in this model.
Outside the function-call subsystem if your downstream
process responds only to the most recent message received in a given
timestep in this model.
In this case, the CAN Unpack
block will not respond to any other messages received, irrespective
of the messages ID.
![]() | Overview | Opening the Vehicle Network Toolbox Block Library | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |