checkStatus
Syntax
Description
Examples
Check Current Status of Data Capture Object
Before you use this example, you must have previously generated the customized data capture object using the FPGA Data Capture Component Generator tool. You must also have integrated the generated IP code into your project and deployed it to the FPGA. The data capture object communicates with the FPGA over a JTAG cable. Make sure that the required cable is connected between the board and the host computer.
Change the capture mode to nonblocking mode.
DC.CaptureMode = 'nonblocking';
Check the current status of the data capture object.
status = checkStatus(DC)
status = struct with fields: CapturedWindows: 0 RunStatus: 'Not started' TriggerStage: 0
Use the step
function to capture data. The data is captured
immediately from the FPGA.
dataOut = step(DC);
Check the current status of the data capture object.
status = checkStatus(DC)
status = struct with fields: CapturedWindows: 1 RunStatus: 'Successfully captured data from FPGA' TriggerStage: 0
Input Arguments
DC
— Customized data capture object
hdlverifier.FPGADataReader
System object™
Customized data capture
object, specified as an hdlverifier.FPGADataReader
System object.
Output Arguments
status
— Current status of data capture object
structure
Current status of the data capture object, returned as a structure containing fields for these signals.
CapturedWindows
— This signal indicates the total number of windows captured so far.RunStatus
— This signal indicates the current running status of the data capture object using one of these options.'Not started'
— Data capture not started.'Waiting for trigger'
— Data capture object is waiting for a trigger event to start data capture.'Evaluating capture condition'
— Data capture object is evaluating the capture condition.'Successfully captured data from FPGA'
— Data captured successfully from the FPGA.'Stopped'
— Data capture has stopped.
TriggerStage
— This signal indicates the trigger stage under evaluation for the run status'Waiting for trigger'
. For the run statuses'Evaluating capture condition'
,'Successfully captured data from FPGA'
, and'Stopped'
, this signal indicates the updated value of the trigger stage.
Version History
Introduced in R2022a
See Also
Objects
Tools
Comando MATLAB
Hai fatto clic su un collegamento che corrisponde a questo comando MATLAB:
Esegui il comando inserendolo nella finestra di comando MATLAB. I browser web non supportano i comandi 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)