このページは機械翻訳を使用して翻訳されました。元の英語を参照するには、ここをクリックします。
checkStatus
説明
例
データキャプチャオブジェクトの現在のステータスを確認する
この例を使用する前に、FPGA Data Capture Component Generator ツールを使用してカスタマイズされたデータ キャプチャ オブジェクトを事前に生成しておく必要があります。また、生成された IP コードをプロジェクトに統合し、FPGA にデプロイする必要があります。データ キャプチャ オブジェクトは、JTAG ケーブルを介して FPGA と通信します。ボードとホスト コンピューターの間に必要なケーブルが接続されていることを確認します。
キャプチャ モードを非ブロッキング モードに変更します。
DC.CaptureMode = 'nonblocking';
データ キャプチャ オブジェクトの現在のステータスを確認します。
status = checkStatus(DC)
status = struct with fields: CapturedWindows: 0 RunStatus: 'Not started' TriggerStage: 0
step
関数を使用してデータをキャプチャします。データは FPGA からすぐにキャプチャされます。
dataOut = step(DC);
データ キャプチャ オブジェクトの現在のステータスを確認します。
status = checkStatus(DC)
status = struct with fields: CapturedWindows: 1 RunStatus: 'Successfully captured data from FPGA' TriggerStage: 0
入力引数
DC
— カスタマイズされたデータキャプチャオブジェクト
hdlverifier.FPGADataReader
System object™
hdlverifier.FPGADataReader
System object として指定されたカスタマイズされたデータ キャプチャ オブジェクト。
出力引数
status
— データキャプチャオブジェクトの現在のステータス
構造体
データ キャプチャ オブジェクトの現在のステータス。これらの信号のフィールドを含む構造体として返されます。
CapturedWindows
— この信号は、これまでにキャプチャされたウィンドウの合計数を示します。RunStatus
— この信号は、これらのオプションのいずれかを使用して、データ キャプチャ オブジェクトの現在の実行ステータスを示します。'Not started'
— データキャプチャが開始されていません。'Waiting for trigger'
— データ キャプチャ オブジェクトは、データ キャプチャを開始するためのトリガー イベントを待機しています。'Evaluating capture condition'
— データ キャプチャ オブジェクトがキャプチャ条件を評価しています。'Successfully captured data from FPGA'
— FPGA からデータが正常にキャプチャされました。'Stopped'
— データのキャプチャが停止しました。
TriggerStage
— この信号は、実行ステータス'Waiting for trigger'
の評価中のトリガー ステージを示します。実行ステータス'Evaluating capture condition'
、'Successfully captured data from FPGA'
、および'Stopped'
の場合、この信号はトリガー ステージの更新された値を示します。
バージョン履歴
R2022a で導入
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)