- You can script the post-processing of the .a2l file by parsing the file as text and removing or collapsing unwanted SUB_GROUP blocks.
- You can reduce A2L content at the source by setting the StorageClass to 'None' or configuring ExportToA2L = false for signals and parameters in nested subsystems. However, this requires more manual effort.
custom options for asap2
15 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Anuj Singh
am 25 Jun. 2025
Beantwortet: Ruchika Parag
am 1 Jul. 2025
I was searching for a method by which i can limite the A2L file to only provide output for top layer and exclude Sub_Group. Currently I'm processing (removing) those subgroup on level 3 and beyond after generating A2L file using "coder.asap2.export(modelName,'IncludeAllRecordLayouts',true);"
My model do have subsystem reference and wokring on 2024b.
I already checked custom option on this link coder.asap2.export - Generate ASAP2 (A2L) file according to ASAM MCD-2 MC standards - MATLAB
0 Kommentare
Akzeptierte Antwort
Ruchika Parag
am 1 Jul. 2025
Hi @Anuj Singh, as of R2024b, there is no built-in option in coder.asap2.export to limit the A2L file generation to only top-level elements or to exclude 'SUB_GROUP's based on hierarchy depth. The function supports flags like 'IncludeAllRecordLayouts' and CustomOptions, but these do not provide control over the depth of SUB_GROUP nesting.
If your model includes Subsystem Reference blocks, the exporter will automatically generate SUB_GROUPs for parameters and signals defined within those referenced subsystems. This behavior cannot currently be disabled via export options.
Since you're already performing post-processing to remove subgroup entries at level 3 and beyond, that remains the most effective workaround. Some additional suggestions:
0 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!