Generate Calibration Files
Generate ASAP2 and CDF files
Use the Generate Calibration Files tool to customize and generate the calibration files for a Simulink® model. You can generate an ASAP2 file or a CDF file. By default, the tool generates the latest supported version of the A2L file according to ASAM MCD-2 MC standards. You can choose to generate a different version. You can customize the options for calibration files, such as the version for the A2L file and the schema type, for the CDF file. The tool remembers the last used settings, such as the version of the ASAP2 file, the option to exclude comments, and the option to enable the ASAP2 file and CDF file generation. Simulink saves these settings in your MATLAB® preferences. The saved settings override the default settings.
Open the Generate Calibration Files
Open the model.
Open the Embedded Coder® app.
For AUTOSAR models, open the AUTOSAR Component Designer app. And for Simulink Real-Time™ models, open the Simulink Coder™ app.
Generate code for the model.
On the C Code tab, select Share > Generate Calibration Files.
For AUTOSAR models, select Autosar > Share > Generate Calibration Files.
Generate an ASAP2 File
Configure a model to generate the latest version of the ASAP2 file with comments included.
Build the model.
Open the Generate Calibration Files tool from the C Code > Share tab.
Click the Generate button.
The tool generates the ASAP2Demo A2L file and saves it in the model build folder.
Introduced in R2021b