Configure AUTOSAR Adaptive Data for Run-Time Calibration and Measurement - MATLAB & Simulink (original) (raw)

Main Content

AUTOSAR Blockset enables you to configure run-time calibration of adaptive application data based on XCP server communication and ASAP2 (A2L) file generation. The XCP and ASAP2 capabilities are defined outside the Adaptive Platform (AP) specification, which as of Release 19-11 does not address data calibration.

As part of generating and deploying adaptive code, you can configure interfaces for XCP server communication in the generated C++ code and export A2L files containing model data for calibration and measurement.

Before deploying adaptive code:

Configure XCP Communication Interface in Generated Code

To enable the communication capability, use the AUTOSAR adaptive model configuration parameter Transport layer (Embedded Coder) to select an XCP transport layer. When Transport layer is set to a value other than None, Simulink® adds XCP server function calls to the generated C++ code. By default, the tool uses the MathWorks® XCP server stack.

Selecting an XCP transport layer enables other XCP parameters. This image shows the XCP server model configuration parameters.

Using the model configuration parameters, you can:

To generate ASAP2 (A2L) files, use Generate Calibration Files from the Share gallery under the AUTOSAR tab of the model. For more information, see Generate ASAP2 and CDF Calibration Files (Simulink Coder).

See Also

coder.asap2.export (Simulink Coder) | Transport layer (Embedded Coder)