このページは機械翻訳を使用して翻訳されました。最新版の英語を参照するには、ここをクリックします。
checkStatus
説明
例
データキャプチャオブジェクトの現在のステータスを確認する
この例を使用する前に、FPGA データ キャプチャ コンポーネント ジェネレーター ツールを使用して、カスタマイズされたデータ キャプチャ オブジェクトを事前に生成しておく必要があります。また、生成された 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)