Configure operator that compares individual signal values within capture condition
Set Up Capture Condition Using Comparison Operator
This example uses a customized data capture object,
DC, that defines two signals for both trigger and data capture.
A is 1 bit and signal
B is 8 bits.
Enable capture condition logic.
DC.EnableCaptureCtrl = true;
To enable capture condition logic, you must select the Include capture condition logic parameter while generating the data capture IP core using the FPGA Data Capture Component Generator tool.
Set up a capture condition to capture data when the FPGA detects a high value on
A at the same time as signal
B is greater
setCaptureCondition(DC,'A',true,'High'); setCaptureCondition(DC,'B',true,7); setCaptureConditionComparisonOperator(DC,'B','>');
DC — Customized data capture object
Customized data capture
object, specified as an
name — Name of capture component signal
Name of a capture component signal, specified as a character vector. This name must
match one of the signal names configured on creation of the input System object
DC. The signal must be configured as a possible trigger
operator — Operator to compare signals within capture condition
== (default) |
Operator to compare signals within the capture condition, specified as one of these
The capture condition comprises value comparisons of one or more signals. For a
multibit signal, specify one of these operators:
>=. For a capture condition containing
x (which indicate bits for the function to
ignore), specify either the
For a logical signal, specify either the
operators. For details on capture conditions, see Capture Conditions.
Introduced in R2022a