CALCulate:COMPare:DATA <data> [, (@<ch_list>)]
CALCulate:COMPare:DATA? [, (@<ch_list>)]
Sets the digital data on the selected channels. You can use the patterns comparison feature to generate an alarm
when a selected digital patterns is detected.
Parameter Typical return
<data> = An 8-bit digital patterns for comparison, specified
as an integer from 0 to 255.
Any integer from 0 to 255
Sets the digital patterns in slot 1 and then enables the patterns comparison mode. When the data read from the module
which is equal to the comparison patterns, an alarm will be generated on Alarm 2.
CALC:COMP:DATA #HF6,(@101)
CALC:COMP:TYPE EQUAL,(@101)
OUTP:ALARM2:SOUR (@101)
CALC:COMP:STAT ON,(@101)
– After specifying the desired digital patterns, use the CALCulate:COMPare:STATe command to enable patterns
comparisons on the selected channels. If you want to monitor the state of specific bits, use this command in con-
junction with the CALCulate:COMPare:MASK command to specify a mask patterns.
– Uses the CALCulate:COMPare:TYPE command to specify whether an alarm or hardware interrupt condition is
generated when a specific bit patterns or bit patterns change is detected.
– A Factory Reset (*RST command) clears the digital patterns and turns off the patterns comparison mode.
Keysight DAQ970A/DAQ973A Programming Guide 63
2 SCPI Programming