CANape and Model-Based Development
CANape in Interaction With MATLAB Simulink

A Harmonious Relationship

Model-Based Development and CANape

Do you work with MATLAB / Simulink? Then CANape closes the gap between you and the ECUs and vehicles. Be it by exchanging files in the appropriate formats or by directly coupling the tools.

 

Direct Coupling Between the Tools

Use CANape as a source for your data processing in MATLAB

You can access the CANape API directly via M scripts. You get direct access to measurement data without having to worry about integrating CAN FD buses, for example, or complex ECU accesses via XCP or diagnostics into your MATLAB environment. You can change parameters in the ECU via your scripts and observe the changed behavior from the measurement data.

Shorten development cycles by measuring and calibrating your Simulink models

Your model runs in Simulink. No matter if in real time or slower or faster. Change individual parameters or load entire parameter sets. Measure any signal from the model. Connect CANape to the model and you can work with the model as if it were an ECU.

You don't have the entire model at your disposal because you receive a part from a development partner only as executable code? No problem. You can also access these parameters and measured variables.

Screenshot CANape Option Simulink XCP Server
Conveniently measure and calibrate model parameters. CANape provides access to signals of the Simulink model via XCP on Ethernet and the Simulink XCP Server.

CANape as Runtime Environment

Reduce the number of tools in your development environment

Simply generate executable code from your model with CANape as the target platform and use CANape as the runtime environment for your code in the vehicle, on the test bench and at any other workstation. You can link input and output data from the model directly with measured variables from ECUs and buses, for example, that you acquire with CANape. You can parameterize the model and measure data from it just as you would from any other ECU. Optimize the model's parameters and export them as an M script to return them to development.

Capture the function of the model through visualization in CANape.

To understand the model, visualize it directly in CANape. You don't need any other tools and can search for parameters in it, for example, and look at the current values and much more.

 

Visualize Simulink and Stateflow models in CANape

Using Simulink Algorithms in CANape

You have developed an algorithm in Simulink, e.g. to evaluate signals? Use it in CANape by generating code for the target platform CANape and generating a DLL. You can use this DLL directly in CANape and save yourself the trouble of implementing the algorithm by other means. The algorithm can be calculated during the measurement or used to analyze existing measurement data. The results can be visualized and saved in the measurement files.

Integrate the DLLs in CANape, link the inputs and outputs of the DLLs, and use the algorithms online during measurement or offline with measurement data.

File Exchange

Seamless data exchange accelerates development and provides process reliability

Measurement data import and export

At the push of a button, CANape converts measurement data into HDF5 format, which can be read directly into The MathWorks tool chain. If measured values are available in HDF5 format, they can be read directly into CANape without conversion.

Exporting parameter files

Parameter files are supported in CANape in various formats. To conveniently update parameter values in the MATLAB / Simulink workspace, parameter files can be exported from CANape as an M-script. After running the script in MATLAB, the workspace contains all new parameter values.

Exporting A2L and parameter files

You have a combination of A2L and parameter files. By exporting from CANape, you create an M script that, when run in MATLAB, creates all objects described in the A2L in the workspace and initializes them with the values from the parameter file.

Product Descriptions

CANape + MATLAB/Simulink = The perfect team for model-based software development

Whatever phase of model development you are currently working on, CANape's versatile interfaces to MATLAB/Simulink always provide you with the optimum measurement and calibration environment. Even in early development phases, Simulink XCP Server provides you with complete access to all the model's internal measurement and calibration values. With Vector vSignalyzer/CANape Target, you can generate a DLL from your model and integrate it in a real-time environment. CANape's Model Explorer allows you to visualize the model using your habitual Simulink display mode.

In this webinar recording (duration 65 minutes), learn how to conduct a CANape project from the early model development phase right through to use in the finished controller.

Target Group: Measurement and calibration engineers, function and software developers

Mostrar más
  • Windows 10/8.1/7 (32-bit and 64-bit)
  • The Simulink XCP Server is supported starting at CANape 8.0
  • MATLAB Version R2016a
Mostrar más

Training

CANape Fundamentals Workshop

Vector offers many different opportunities for you to build your knowledge of CANape and broadening it. We recommend our CANape Fundamentals Workshop as an entry-level course in CANape. It is best to take this basic course before attending advanced training courses that are also offered. However, you may register for any of the courses independently.

Further Options

CANape Option Driver Assistance

Object verification for ADAS incl. high-performance data acquisition from ADAS sensors

Learn more
CANape Option vCDM

Easy collaboration on parameter sets within a team

Learn more
CANape Option vMDM

Provision and Analysis of Measurement Data

Learn more
CANape Option Bypassing

Bypassing computation with deterministic time behavior

Learn more
CANape Option Thermodynamic State Charts

Display of thermodynamic data and informative state charts for online and offline analysis

Learn more