Specifications

RIGOL Chapter 2 Command System
2-10 M300 Programming Guide
CALCulate:COMPare:STATe
Syntax CALCulate:COMPare:STATe <state>[,(@ch_list)]
CALCulate:COMPare:STATe? [(@<ch_list>)]
Description This command disables or enables the pattern comparison mode on the specified digital
input channels. Once the pattern comparison mode was enabled, the instrument monitors
the digital input value of the channel, compares the digital input value with the alarm value
and generates an alarm when the digital input value is the same as or different from the
pattern defined.
Parameters
Name
Type
Range
Default
<state>
Bool
{OFF|0|ON|1}
None
<ch_list>
Channel
List
One or more channels (only for the DIO
channels), the rules are as follows:
(@101): channel 01 on the module in Slot1;
(@101:103): channel 01 through 03 on the
module in Slot1;
(@101:103,301): channel 01 through 03 on
the module in Slot1 and channel 01 on the
module in Slot3.
If the parameter
is omitted, this
command will be
applied to the
whole scan list.
Explanation This command is only valid for the DIO channels of the multifunction module. The
specified DIO channels do not have to be part of the scan list.
A Factory Reset (the
*RST command) turns off the pattern comparison mode. An
Instrument Preset (the
SYSTem:PRESet command) or Card Reset (the SYSTem:CPON
command) does not turn off the pattern comparison mode.
Return
Format
The query returns 0 or 1. Multiple return values are separated by commas.
Example
CALC:COMP:STAT 1,(@301)
CALC:COMP:STAT? (@301)
The query returns 1.
Related
commands
CALCulate:COMPare:DATA
CALCulate:COMPare:MASK
CALCulate:COMPare:TYPE