Genereating a2l using Custom Storage Classes

11 ビュー (過去 30 日間)
Mario Weyrich
Mario Weyrich 2013 年 6 月 22 日
編集済み: Pratik Kumar 2025 年 4 月 15 日
My question is about how to generate an asap2-File (.a2l) with the Embedded Coder. I'm using custom storage classes for tunable parameters in the model. Parameters are defined as data objects, the appropriate class is derived from Simulink.Parameter, but uses a custom storage class. This way my parameters unfortunately do not appear in the a2l-file. If I set the StorageClass to ExportedGlobal, they will appear. But I have to use the custom storage class. What can I do that the parameters will appear as characteristics in the a2l when setting the storage class to custom??
Thanks for advice...

回答 (2 件)

Paolo SAcco
Paolo SAcco 2017 年 4 月 20 日
編集済み: Paolo SAcco 2017 年 4 月 20 日
..after four years, any suggestions? i have the same problem!
  1 件のコメント
lei zhu
lei zhu 2020 年 11 月 3 日
Another 3 years later, Im here looking for the answer.

サインインしてコメントする。


Pratik Kumar
Pratik Kumar 2025 年 4 月 15 日
編集済み: Pratik Kumar 2025 年 4 月 15 日
For the TLC based advanced Custom Storage Class to appear in ASAP2(A2L file), the property 'SupportSILPIL' should be set in the attributes of the Custom Storage Class as below.
For an element associated with the Custom Storage Class where "Type" is set to "Other", create a custom attributes class for the Custom Storage Class and associate the custom attributes class with a Boolean property, 'SupportSILPIL' set to true.
classdef CSCOtherAttributes < Simulink.CustomStorageClassAttributes
properties(PropertyType = 'logical scalar')
SupportSILPIL = true;
end
end
For more information, refer to the following documentation page:

カテゴリ

Help Center および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by