target.PILProtocol クラス
パッケージ: target
説明
target.CommunicationProtocolStack
から機能を継承する target.PILProtocol
クラスを使用して、ターゲット ハードウェアのプロセッサインザループ (PIL) 通信プロトコル実装について記述します。たとえば、このクラスを使用して、データ転送のバッファリング情報と、関連付けられた target.Board
オブジェクトを使用する I/O に関するタイムアウト情報を提供します。
target.PILProtocol
オブジェクトの作成には関数 target.create
を使用します。
プロパティ
Name
— PIL プロトコル オブジェクトの名前
文字ベクトル | string
PIL プロトコル オブジェクトの名前。
属性:
GetAccess | public |
SetAccess | public |
SendBufferSize
— 送信バッファー サイズ
スカラー整数
通信データをキャッシュするための送信バッファーのサイズ。
属性:
GetAccess | public |
SetAccess | public |
ReceiveBufferSize
— 受信バッファー サイズ
スカラー整数
通信データをキャッシュするための受信バッファーのサイズ。
属性:
GetAccess | public |
SetAccess | public |
SendTimeout
— 送信タイムアウト
スカラー整数
データ送信コマンドに適用されるタイムアウト (秒単位で指定)。
属性:
GetAccess | public |
SetAccess | public |
ReceiveTimeout
— 受信タイムアウト
スカラー整数
データ受信コマンドに適用されるタイムアウト (秒単位で指定)。
属性:
GetAccess | public |
SetAccess | public |
OpenTimeout
— オープン タイムアウト
スカラー整数
PIL 通信を開くときに適用されるタイムアウト (秒単位で指定)。
属性:
GetAccess | public |
SetAccess | public |
ByteInputOutputOnly
— バイトのみ
スカラー整数
PIL 通信でバイトのみが送受信されるかどうかを指定します。
属性:
GetAccess | public |
SetAccess | public |
例
PIL プロトコル情報の指定
PIL プロトコル情報を指定します。Set Up PIL Connectivity by Using target Packageから抜粋した以下のコードは、情報を指定する方法を示しています。
pilProtocol = target.create('PILProtocol'); pilProtocol.Name = 'Linux PIL Protocol'; pilProtocol.SendBufferSize = 50000; pilProtocol.ReceiveBufferSize = 50000; hostTarget.CommunicationProtocolStacks = pilProtocol;
バージョン履歴
R2020b で導入
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)