target.Board クラス
名前空間: target
説明
target.Board
オブジェクトを使用して、ターゲット ハードウェア ボードに関するデータ (たとえば、CPU、通信、ツールに関する情報) を MATLAB® に提供します。
target.Board
オブジェクトの作成には関数 target.create
を使用します。
プロパティ
Name
— ボード名
文字ベクトル | string
target.Board
オブジェクトの名前。これは、データの抽出において target.get
が識別子として使用します。
属性:
GetAccess | public |
SetAccess | public |
Processors
— 使用可能なプロセッサ
target.Processor
オブジェクト配列
ボードに対して使用可能なプロセッサの記述を提供する target.Processor
オブジェクトの配列。
属性:
GetAccess | public |
SetAccess | public |
CommunicationInterfaces
— 使用可能な通信インターフェイス
target.CommunicationInterfaces
オブジェクト配列
ボードに対して使用可能な通信インターフェイスの記述を提供する target.CommunicationInterface
オブジェクトの配列。
属性:
GetAccess | public |
SetAccess | public |
CommunicationProtocolStacks
— ボードによってサポートされる、使用可能な通信プロトコル
target.CommunicationProtocolStack
オブジェクト配列
ボード用の通信プロトコルの記述を提供する target.CommunicationProtocolStack
の配列。
属性:
GetAccess | public |
SetAccess | public |
Tools
— ボードの操作に適したツール
target.Tools
オブジェクト
ボードに関連付けられているツールに関する記述を集めたもの。たとえば、ApplicationExecutionTool
はターゲット ハードウェア上でのアプリケーションの実行を有効にします。
属性:
GetAccess | public |
SetAccess | public |
例
ボード記述の作成
ターゲット ハードウェア ボードの記述を作成します。Set Up PIL Connectivity by Using Target Framework (Embedded Coder)から抜粋したこのコードは、記述の作成方法を示しています。
MATLAB にプロセッサ属性の記述を提供するボード オブジェクトを作成します。
hostTarget = target.create('Board', 'Name', 'Host Intel processor');
たとえば、サポートされるプロセッサを再利用することで、ボードのプロセッサを指定します。
hostTarget.Processors = target.get('Processor', ... 'Intel-x86-64 (Linux 64)');
ターゲット ハードウェアの通信インターフェイスの作成
ターゲット ハードウェア ボードの通信インターフェイスを作成します。Set Up PIL Connectivity by Using Target Framework (Embedded Coder)から抜粋した以下のコードは、インターフェイスの作成方法を示しています。
comms = target.create('CommunicationInterface'); comms.Name = 'Linux TCP Interface'; comms.Channel = 'TCPChannel'; comms.APIImplementations = target.create('APIImplementation', ... 'Name', 'x86 RTIOStream Implementation'); comms.APIImplementations.API = target.create('API', 'Name', 'RTIO Stream'); ... hostTarget.CommunicationInterfaces = comms;
PIL プロトコル情報の指定
PIL プロトコル情報を指定します。Set Up PIL Connectivity by Using Target Framework (Embedded Coder)から抜粋した以下のコードは、情報を指定する方法を示しています。
pilProtocol = target.create('PILProtocol'); pilProtocol.Name = 'Linux PIL Protocol'; pilProtocol.SendBufferSize = 50000; pilProtocol.ReceiveBufferSize = 50000; hostTarget.CommunicationProtocolStacks = pilProtocol;
バージョン履歴
R2020b で導入
参考
target.create
| target.Processor
トピック
- Set Up PIL Connectivity by Using Target Framework (Embedded Coder)
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)