XCP CAN FD Transport Layer
Transport XCP messages via CAN FD
Vehicle Network Toolbox / XCP Communication / CAN FD
The XCP CAN FD Transport Layer subsystem uses the specified device to transport and receive XCP messages.
Use this block with an XCP CAN FD Data Acquisition block to acquire and analyze specific XCP messages. Use this block with an XCP CAN FD Data Stimulation block to send specific information to modules.
Other Supported Features
The XCP communication blocks support the use of Simulink® Accelerator™ and Rapid Accelerator mode. Using this feature, you can speed up the execution of Simulink models. For more information on this feature, see the Simulink documentation.
Device — CAN device
device list option
The CAN device, chosen from all connected CAN devices.
Sample time — Simulation refresh rate
0.01 (default) | numeric
Simulation refresh rate, specified as the sampling time of the block during
simulation. This value defines the frequency at which the XCP CAN FD Transport
Layer subsystem and the underlying blocks run during simulation. For
information about simulation sample timing, see Timing in Hardware Interface Models. If the block is inside
a triggered subsystem or inherits a sample time, specify a value of
-1. You can also specify a MATLAB® variable for sample time. The default value is
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
The XCP communication blocks support code generation with limited deployment portability that runs only on the host computer or Simulink Real-Time™ targets.
Code generation requires a C++ compiler that is compatible with the code generation target. For more information, see Supported and Compatible Compilers.
Introduced in R2022b