Why can't generate A2L file including parameters and measurements for AUTOSAR model in Simulink 2018b?
Ältere Kommentare anzeigen
My Simulink version is 2018b and simulink model is an AUTOSAR model. After I select ASAP2 interface option in Configuration Parameters - Code Generation - Interface, it will generate an A2L file when building model, but there isn't any parameters and measurements in A2L. Why is it? Is it because A2L generation for AUTOSAR model is not supported in Simulink2018b? If it is not supported, is there any other solutions to generate A2L for AUTOSAR model in Simulink?
Antworten (1)
Manikanta Aditya
am 3 Jan. 2025
Bearbeitet: Manikanta Aditya
am 3 Jan. 2025
0 Stimmen
Hi @Peng
The issue you're encountering with generating an A2L file that includes parameters and measurements for an AUTOSAR model in Simulink 2018b is likely due to the limitations of that version. Simulink 2018b does not fully support the generation of A2L files with parameters and measurements for AUTOSAR models.
- Consider upgrading to a newer version of Simulink that has enhanced support for AUTOSAR models and A2L file generation. For example, later versions like MATLAB R2020a and beyond have improved capabilities for generating A2L files with parameters and measurements for AUTOSAR models.
- If upgrading is not an option, you might need to manually configure the data elements for ASAP2 file generation. This involves specifying the calibration and measurement properties for each data element in your model. You can use the Code Mappings Editor or command-line functions to set these properties.
- Ensure you are using Embedded Coder, which provides additional features for code generation and A2L file creation. You can configure the model data elements and generate the A2L file using the Embedded Coder app
Refer to the following documentations:
- Generate ASAP2 File for AUTOSAR Architecture Models
- Configure Model Data Elements for ASAP2 File Generation
- Generate ASAP2 and CDF Calibration Files
I hope this helps you.
2 Kommentare
Peng
am 6 Jan. 2025
Manikanta Aditya
am 6 Jan. 2025
Bearbeitet: Manikanta Aditya
am 6 Jan. 2025
You're correct in your understanding.
Since your parameters and signals are AUTOSAR objects, they cannot be configured in Embedded Coder when using the ert.tlc system target file. The autosar.tlc system target file is specifically designed to handle AUTOSAR objects, and switching to ert.tlc will cause errors because it does not support AUTOSAR-specific configurations.
- You might consider writing custom MATLAB scripts to automate the configuration of parameters and signals for the A2L file generation. This can help streamline the process and ensure that all necessary elements are correctly configured.
Kategorien
Mehr zu Code Generation Configuration Sets finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
