How to remove particular data to be exported to A2L with coder.asap2.export?

2 次查看(过去 30 天)

采纳的回答

MathWorks Support Team
编辑:MathWorks Support Team 2025-11-10
There is the way of setting "Export" flag to false for particular data.
For example, the following sample-script shows the way to eliminate the measurements including "_a_Sig_".
descObj = coder.asap2.getEcuDescriptions(bdroot);
measurements = descObj.find('Measurement');
for measurement = measurements
  if contains(measurement,'_a_Sig_')
    set(descObj,'Measurement',measurement,Export = false);
  end
end
coder.asap2.export(bdroot,CustomEcuDescriptions=descObj)
The following Linked doc. mentions the customization workflow of "coder.asap2.getEcuDescriptions".

更多回答(0 个)

标签

尚未输入任何标签。

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by