Log and replay CAN messages using MathWorks Virtual CAN channels in Simulink®. You can update this model to connect to supported hardware on your system.
Uses MathWorks Virtual CAN channels to set up periodic transmit and reception of CAN messages, using Simulink®. The Virtual channels are connected in a loopback configuration.
Use J1939 blocks to directly send and receive Parameter Group (PG) messages in Simulink®.
Use XCP blocks to directly acquire measurement values from a slave in Simulink®. It uses an XCP slave simulator available for free download from Vector, and Vector Virtual CAN channels.
Set up CAN communication between host-side CAN Vector blocks and target models. This example uses:
Use Vehicle Network Toolbox™ to implement a Controller Area Network (CAN) in a remote manipulator arm using Simulink®. The CAN messages used are defined in the CAN database file,
Uses MathWorks Virtual CAN FD channels to set up transmission and reception of CAN FD messages, using Simulink®. The Virtual channels are connected in a loopback configuration.