Specifications

Chapter 2 Command System RIGOL
M300 Programming Guide 2-11
CALCulate:COMPare:TYPE
Syntax CALCulate:COMPare:TYPE <mode>[,(@<ch_list>)]
CALCulate:COMPare:TYPE? [(@<ch_list>)]
Description This command sets the pattern comparison mode for the specified digital input channels.
The instrument will generate an alarm when the digital input value is the same as or
different from the pattern defined.
Parameters
Name
Type
Range
Default
<mode>
Discrete
{EQUal|NEQual}
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 MC3534 (multifunction module).
The specified DIO channels do not have to be part of the scan list.
In pattern comparison, the bits of which the mask value (set using the
CALCulate:COMPare:MASK command) are 0 will be ignored and only the bits of which
the mask value is 1 will be compared. When EQUal is selected, the instrument
generates an alarm when the input pattern monitored is the same with the alarm
value (set using the
CALCulate:COMPare:DATA command). When NEQual is selected,
the instrument generates an alarm when the input pattern monitored is different from
the alarm value.
A Factory Reset (the
*RST command) clears the pattern compare setting and turns
off the pattern comparison mode. An Instrument Preset (the
SYSTem:PRESet
command) or Card Reset (the
SYSTem:CPON command) does not clear the pattern
compare setting and does not turn off the pattern comparison mode.
Return
Format
The query returns EQU or NEQ. Multiple return values are separated by commas.
Example
CALC:COMP:TYPE EQU,(@301:304)
CALC:COMP:TYPE? (@301:304)
The query returns EQU,EQU,EQU,EQU.
Related
commands
CALCulate:COMPare:DATA
CALCulate:COMPare:MASK
CALCulate:COMPare:STATe