Generate ASAP2 and CDF Calibration Files
Generate and customize an ASAP2 file and a CDF (Calibration Data Format) file for a model
by using the Generate Calibration Files tool. By default, the tool
generates the latest supported version of the A2L file according to ASAM MCD-2 MC standards
but 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.
For more information on the ASAM MCD-2 MC (ASAP2) standard and the ASAM CDF Standards, go to
the ASAM website at www.asam.net
.
Open Generate Calibration Files Tool
Enter into code perspective of the model.
Build the model.
On the C CODE tab, select Share > Generate Calibration Files.
Note
For AUTOSAR models, select AUTOSAR > Share > Generate Calibration Files.
Using the tool, you can generate A2L and cdfx
files at the same time
for a model. You can use the tool for models configured with ERT-based, GRT-based, or
Adaptive AUTOSAR system target file.
ASAP2 File Generation
ASAP2 defines the description format of the internal ECU variables used in measurement and calibration. To generate an ASAP2 file:
By default the Generate ASAP2 option is enabled. If it is not enabled, slide the Generate ASAP2 to the on position to enable A2L generation.
To change the name of A2L file, specify the new name in the File name field.
By default, the code generator uses the build folder for the folder path of the selected model. If you want to specify a different folder path for the A2L file, you can do that in the Folder path field.
To replace ECU addresses in the A2L file, provide a symbol file associated with the application executable in the Symbol file field. Otherwise, clear the Address replacement field.
Set Version to the required version of the A2L file to be generated. The default version is 1.71.
To exclude comments in the A2L file, clear Include comments.
Click Generate.
You can also use the coder.asap2.export
function to
generate the A2L file.
CDF File Generation
ASAM CDF defines the data description format for storing the ECU parameter values and the associated meta data. The ASAM CDF files uses XML, which can be easily validated, edited, imported, and exported by calibration tools and XML editors. To generate CDF file by using the tool:
Slide the Generate CDF to the on position.
To change the name of the CDF file, specify it in the File name field.
By default, the code generator selects the build folder for the folder path of the selected model. If you want to specify a different folder path for the CDF file, you can do that in the Folder path field.
Use the Schema type field to set to XSD (XML Schema Definition) or DTD (Document Type Definition). The DTD schema type is the default.
You can also use coder.cdf.export
function to generate the CDF file.
Create a Host-Based ASAM-ASAP2 Data Definition File for Data Measurement and Calibration
This model shows ASAP2 data export. ASAP2 is a data definition standard proposed by the Association for Standardization of Automation and Measuring Systems (ASAM).
Open Example Model
Open the example model rtwdemo_asap2
.
open_system('rtwdemo_asap2');
See the ASAP2 File Generation to customize and generate the ASAP2 file.
See Also
coder.cdf.export
| coder.asap2.export