Specifications
RIGOL Chapter 2 Command System
2-8 M300 Programming Guide
CALCulate:COMPare:DATA
Syntax CALCulate:COMPare:DATA <data>[,(@<ch_list>)]
CALCulate:COMPare:DATA? [(@<ch_list>)]
Description
Set the alarm value of the input signal of the specified DIO channel.
Parameters
Name
Type
Range
Default
<data> Integer
8 bit: 0 to 255
16 bit: 0 to 65535
32 bit: 0 to 42,9496,7295
None
<ch_list>
Channel
List
One or more channels (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 on the multifunction module. The
specified DIO channels do not have to be part of the scan list.
The range of <data> depends on the bit setting of the channel. When the setting value
of <data> exceeds the range, the instrument will convert the setting value to a binary
number and then take the bit setting of the channel as the parameter value
automatically. For example, when the channel is set to 8 bit and <data> is set to 256
(the binary number is 1 0000 0000), the actual setting value is 0 (0000 0000).
After setting the alarm value using this command, you can send the
CALCulate:COMPare:STATe command enable the pattern comparison function of the
DIO channel.
A Factory Reset (the
*RST command) clears the alarm value and turns off the pattern
comparison mode. An Instrument Preset (the
SYSTem:PRESet command) and Card
Reset (the
SYSTem:CPON command) do not clear the data and does not turn off the
pattern comparison mode.
Return
Format
The query returns a decimal integer. Multiple return values are separated by commas.
Example
CALC:COMP:DATA 129,(@301)
Related
commands
CALCulate:COMPare:MASK
CALCulate:COMPare:STATe
CALCulate:COMPare:TYPE