メインコンテンツ

map

ターゲット機能をハードウェア ボードにマッピングする

構文

map(targetObj,hardwareObject,displayName)
map(targetObj,hardwareObject,featureObj)
map(targetObj,hardwareObject,featureObject,IOInterfaceName)
map(targetObj,featureObj)

説明

map(targetObj,hardwareObject,displayName) は、Hardware オブジェクトを、表示名が displayName である Target オブジェクトにマッピングします。saveTarget 関数を使用して Target オブジェクトを保存すると、Simulink® コンフィギュレーション パラメーターの [ハードウェア実行][ハードウェア ボード] 選択項目に新しいエントリとして displayName が追加されます。hardwareObject および displayName 引数がオブジェクトの cell 配列である場合、各表示名により、対応するハードウェア ボードの [ハードウェア実行][ハードウェア ボード] 選択項目に新しい一意のエントリが追加されます。

map(targetObj,hardwareObject,featureObj) は、Target オブジェクトの機能を Hardware オブジェクトにマッピングします。saveTarget 関数を使用して Target オブジェクトを保存すると、ハードウェア ボードの Simulink コンフィギュレーション パラメーターでマッピングされた機能が有効になります。

map(targetObj,hardwareObject,featureObject,IOInterfaceName) は、Target オブジェクトの機能オブジェクトを Hardware オブジェクトにマッピングします。機能オブジェクトは、Name プロパティが IOInterfaceName に等しい Hardware オブジェクトの I/O インターフェイス EthernetInterface または SerialInterface を使用します。

map(targetObj,featureObj) は、参照ターゲットの機能オブジェクトを Target オブジェクトにマッピングします。

入力引数

すべて展開する

開発されている Target を参照する Target オブジェクト。

Target にマッピングされている hardware board を参照する Hardware オブジェクト。

機能オブジェクトには、DeployerProfilerPILBaremetalSchedulerOperatingSystem、および ExternalMode オブジェクトが含まれます。機能をマッピングする前に、addNewDeployer などのそれぞれの addNew メソッドを使用して、機能オブジェクトを Target オブジェクトに追加する必要があります。

データ型: cell

Hardware オブジェクトの EthernetInterface または SerialInterface オブジェクトの Name プロパティに一致する表示名。

例: 'MySerialInterface'

データ型: char | cell

Hardware オブジェクトの表示名。saveTarget 関数を使用して Target オブジェクトを保存すると、表示名は Simulink コンフィギュレーション パラメーターの [ハードウェア実行][ハードウェア ボード] プロパティの選択項目になります。

例: 'MyHardwareBoard'

例: {'MyHardwareBoard','MyOtherHardwareBoard'}

データ型: string | char | cell

バージョン履歴

R2015a で導入