Transport XCP messages via CAN
Vehicle Network Toolbox: CAN Communication
Vehicle Network Toolbox: XCP Communication
The XCP CAN Transport Layer subsystem uses the specified device to transport and receive XCP messages.
Use this block with an XCP Data Acquisition block to acquire and analyze specific XCP messages. Use this block with an XCP Data Stimulation block to send specific information to modules.
The XCP CAN Transport Layer block supports the use of Simulink® Accelerator™ and Rapid Accelerator mode. Using this feature, you can speed up the execution of Simulink models.
The XCP Configuration block also supports code generation with limited deployment capabilities. Code generation requires the Microsoft® C++ compiler.
For more information on this feature, see the Simulink documentation.
Use the Block Parameters dialog box to select your CAN Transport configuration.
Select a CAN device from the list of devices available to your system.
bus speed property
for the selected device. The default bus speed is the default assigned
by the selected device.
Specify the sampling time of the block during simulation, which is the simulation time as described by the Simulink documentation. This value defines the frequency at which the XCP CAN Transport Layer subsystem and the underlying blocks run during simulation. If the block is inside a triggered subsystem or to inherit sample time, you can specify –1 as your sample time. You can also specify a MATLAB® variable for sample time. The default value is 0.01 (in seconds).