필터 지우기
필터 지우기

Exclude custom storage class parameters from ASAP2 generation

조회 수: 3 (최근 30일)
Yun Han
Yun Han 2022년 1월 18일
답변: Nirupama 2024년 1월 22일
Hi, I created a custom storage class for my Simulink project. And ASAP2 file generation is enabled for my project.
But I want the parameters that use this custom storage class to not be included in the ASAP2 file. Is there a way to specify to exclude certain custom storage class parameters from ASAP2 generation?

답변 (1개)

Nirupama
Nirupama 2024년 1월 22일
Starting from R2022b,
  1. Open model.
  2. Build model.
  3. Use "coder.asap2.getEcuDescriptions" to fetch ECU descriptions in an ASAP2 file.
  4. Pass the obtained description data and the parameter to be removed from the ASAP2 file into the "delete" function.
  5. Generate A2L/ASAP2 file.
Sample code:
open_system("ASAP2Demo");
rtwbuild("ASAP2Demo");
descObj = coder.asap2.getEcuDescriptions("ASAP2Demo");
delete(descObj,"Characteristic","Custom_parameter1");
coder.asap2.export("ASAP2Demo",CustomEcuDescriptions=descObj);
For more information, refer to:
Regards,
Nirupama

카테고리

Help CenterFile Exchange에서 Generated Code Interfacing에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by