setPlatformProperty
説明
setPlatformProperty(
は、AUTOSAR Classic Platform にマッピングされたデータ ディクショナリ内の指定されたディクショナリ要素の指定されたプラットフォーム プロパティを設定します。データ インターフェイス オブジェクトまたはデータ要素オブジェクトをディクショナリ要素として指定できます。platformMapping
,dictElementObj
,Name=Value
)
例
データ インターフェイスの AUTOSAR プロパティ値の設定
指定したデータ インターフェイスに対する AUTOSAR のパッケージや通信のプロパティを設定するには、関数 setPlatformProperty
を使用します。関連する関数のワークフローを示す詳細な例については、データ ディクショナリでの AUTOSAR Classic のデータ インターフェイスとプロパティの構成を参照してください。
archDataObj = Simulink.dictionary.archdata.open("MyInterfaces.sldd"); platformMapping = getPlatformMapping(archDataObj,"AUTOSARClassic"); interfaceObj = getInterface(archDataObj,"DataInterface"); setPlatformProperty(platformMapping,interfaceObj,IsService=false,... Package="/Interface3",InterfaceKind="SenderReceiverInterface");
データ要素の AUTOSAR プロパティ値の設定
指定したデータ要素に対する AUTOSAR の SwAddrMethod やキャリブレーションのプロパティを設定するには、関数 setPlatformProperty
を使用します。
archDataObj = Simulink.dictionary.archdata.open("MyInterfaces.sldd"); platformMapping = getPlatformMapping(archDataObj, "AUTOSARClassic"); interfaceObj = getInterface(archDataObj, "DataInterface"); dataElementObj = getElement(interfaceObj,"DE1"); setPlatformProperty(platformMapping,dataElementObj,SwAddrMethod="VAR1",... SwCalibrationAccess="ReadWrite",DisplayFormat='%.3f');
入力引数
platformMapping
— プラットフォーム マッピング オブジェクト
autosar.dictionary.ARClassicPlatformMapping
オブジェクト
プラットフォーム マッピング オブジェクト。autosar.dictionary.ARClassicPlatformMapping
オブジェクトとして指定します。
dictElementObj
— ディクショナリ オブジェクト内の要素
Simulink.dictionary.archdata.DataInterface
オブジェクト | Simulink.dictionary.archdata.DataElement
オブジェクト
AUTOSAR プラットフォーム固有のプロパティと値にアクセスするディクショナリ オブジェクト内の要素。Simulink.dictionary.archdata.DataInterface
オブジェクトまたは Simulink.dictionary.archdata.DataElement
オブジェクトとして指定します。
この引数は、addDataInterface
または getInterface
の以前の呼び出しで返されたデータ インターフェイス オブジェクト、あるいは addElement
または getElement
の以前の呼び出しで返されたデータ要素オブジェクトにすることができます。
名前と値の引数
オプションの引数のペアを Name1=Value1,...,NameN=ValueN
として指定します。ここで、Name
は引数名、Value
は対応する値です。名前と値の引数は他の引数の後に配置しなければなりませんが、ペアの順序は重要ではありません。
R2021a より前では、コンマを使用して各名前と値を区切り、Name
を引用符で囲みます。
例: SwAddrMethod='VAR1'
DisplayFormat
— キャリブレーション表示形式
文字ベクトル | string スカラー
指定した AUTOSAR データ要素オブジェクトのキャリブレーション表示形式。文字ベクトルまたは string スカラーとして指定します。AUTOSAR の表示形式仕様は、キャリブレーション データおよび測定データを表示する幅と精度を制御します。
例: DisplayFormat='%2.6f'
InterfaceKind
— AUTOSAR 通信インターフェイス
"SenderReceiverInterface"
| "NvDataInterface"
| "ModeSwitchInterface"
指定した AUTOSAR インターフェイス オブジェクト用に表されている AUTOSAR 通信インターフェイスの種類。"SenderReceiverInterface"
、"NvDataInterface"
、および "ModeSwitchInterface"
として指定します。
例: InterfaceKind="SenderReceiverInterface"
IsService
— インターフェイスがサービス インターフェイスである
true
| false
インターフェイスがサービス インターフェイスかどうか。true
または false
として指定します。
例: IsService=false
Package
— パッケージ パス
文字ベクトル | string スカラー
指定した AUTOSAR インターフェイス オブジェクトの要素パッケージの完全修飾パス。文字ベクトルまたは string スカラーとして指定します。
例: Package='/Interface2'
SwAddrMethod
— パラメーター SwAddrMethod
の名前
文字ベクトル | string スカラー
指定した AUTOSAR データ要素オブジェクトに対して有効な SwAddrMethod
名。文字ベクトルまたは string スカラーとして指定します。コード生成では、SwAddrMethod
名を使用して、メモリ セクションで AUTOSAR パラメーターをグループ化し、キャリブレーション ツールおよび測定ツールからアクセスできるようにします。
例: SwAddrMethod="VAR"
SwCalibrationAccess
— キャリブレーション アクセス モード
"ReadOnly"
| "ReadWrite"
| "NotAccessible"
指定した AUTOSAR データ要素オブジェクトのデータへのキャリブレーション ツールと測定ツールからのアクセス方法。"ReadOnly"
、"ReadWrite"
、および "NotAccessible"
として指定します。
例: SwCalibrationAccess="ReadOnly"
バージョン履歴
R2022b で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)