Does MATLAB or Simulink have any capabilities of interfacing to Vector products such as CANoe and CANape?

7 views (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 30 Oct 2024
Edited: MathWorks Support Team on 5 Nov 2024
There are several options available when interfacing MathWorks products with Vector products.

----- Solutions provided by MathWorks -----

1) Vehicle Network Toolbox 
The Vehicle Network Toolbox provides the ability to communicate with in-vehicle networks using Controller Area Network (CAN) protocol. It is a comprehensive toolbox with a MATLAB® interface, Simulink® modeling support, and a utility that allows you to monitor CAN traffic. All areas of the toolbox allow the use of CANdb database files. You can use the Vehicle Network Toolbox with supported Vector devices. These devices and drivers provide a link to the external CAN bus as well as virtual channel capability.
2) CAN Blocks shipped with Hardware Support Packages
We ship CAN blocks with several Hardware Support Packages for CAN communication from embedded hardware. These targets include Arduino, Raspberry Pi, Speedgoat, NVIDIA Jetson and NVIDIA DRIVE, STMicroelectronics Nucleo, PX4 Autopilots, TI C2000:
3) Simulink Real-Time
Using Simulink Real-Time you can interface the Speedgoat target computer to Vector CANape using the Universal Calibration Protocol (XCP). The target computer acts as an electronic control unit (ECU) for a Vector CANape system.

----- Solutions provided by Vector -----

Please contact Vector Informatik GmbH for any queries or support regarding the tools below:
1) CANape/MATLAB Interface
CANape allows standard computers to replace expensive rapid prototyping hardware by running Simulink models as DLLs with Simulink, Simulink Coder, and the CANape Target (cnp.tlc). It uses XCP to access internal model variables and parameters, enabling PC-based bypassing of ECU functions with real-time data synchronization. The Simulink Model Explorer in CANape visualizes and parameterizes models, and the Simulink XCP Server facilitates measurement and parameter adjustment without model instrumentation. This setup allows for iterative analysis and tuning of Simulink models within CANape.
 
2) Vector CANoe MATLAB Integration Package
CANoe can be used with MATLAB and Simulink both online and offline. In online mode, you can build a Windows DLL with Simulink, Simulink Coder, and the CANoe Target (cn.tlc). You can use this DLL as an application or plant model in CANoe to simulate the rest of the system behavior against your System Under Test (SUT). Offline, you can run the simulation in MATLAB and Simulink while CANoe provides the communication aspects as well as the automated test execution.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!