メインコンテンツ

このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。

coder.asap2.RecordLayout

Create record layout object

R2023a 以降

説明

Create a record layout object to define a record layout element and export it to an ASAP2 file.

作成

rec = coder.asap2.RecordLayout creates a record layout object. You can use the object to define a record layout and export it to an ASAP2 file.

プロパティ

すべて展開する

Specify a name for the custom record layout.

例: "CustomRecordLayout_1"

Specify details for the record layout such as Position, DataType, IndexMode, IndexOrder, and AddressType.

例: struct('Name','Record1','Position',1,'DataType','int','IndexMode','COLUMN_DIR','IndexOrder','INDEX_INCR','AddressType','DIRECT')

Specify any additional description that needs to be populated in the record layout.

例: "additional information"

すべて折りたたむ

Open a model, build it, and create the ECU description object.

openExample("ASAP2Demo")
slbuild("ASAP2Demo")
descObj = coder.asap2.getEcuDescriptions("ASAP2Demo")

Create a custom record layout and add the necessary details.

userRecordLayout = coder.asap2.RecordLayout
userRecordLayout.Name = 'Custom_RecordLayout1'

Add and export the custom record layout.

add(descObj,userRecordLayout)
coder.asap2.export("ASAP2Demo",CustomEcuDescriptions=descObj)

バージョン履歴

R2023a で導入