CALCulate:COMPare:TYPE

From Keysight 34970A/34972A

CALCulate:COMPare:TYPE

Syntax

CALCulate:COMPare:TYPE <mode>[,(@<ch_list>)]

CALCulate:COMPare:TYPE? [(@<ch_list>)]

Description

This command configures the specified digital input channels to generate an alarm when a specific bit pattern or bit pattern change is detected. This command is used in conjunction with the CALCulate:COMPare:DATA command which sets the data bit pattern and the CALCulate:COMPare:MASK command which sets the mask bit pattern.

Used With:

  • 34907A   Multifunction Module (digital input channels only)

Parameters

Name Type Range of Values Default Value
<mode> Discrete {EQUal|NEQual} This is a required parameter.

The power-on value is NEQual.

<ch_list> Channel List

One or more channels, as shown:

(@301) - channel 01 on the module in slot 300.

(@301:302) - channels 01 and 02 on the module in slot 300.

(@101,201:202,302) - channel 01 on the module in slot 100, channels 01 and 02 on the module in slot 200, and channel 02 on the module in slot 300.

If you omit the optional <ch_list> parameter, this command applies to the currently defined scan list.

Remarks

  • Note that the specified channels do not have to be part of the scan list to generate an alarm. Alarms are evaluated continuously as soon as you enable them. Alarms are evaluated constantly on the multifunction module, but alarm data is stored in reading memory only during a scan.
  • Select EQUal to generate an alarm or interrupt when the data read from the specified channel is equal to CALCulate:COMPare:DATA, after being masked by CALCulate:COMPare:MASK.
  • Select NEQual (not equal) to generate an alarm or interrupt when the data read from the bank is not equal to CALCulate:COMPare:DATA after being masked by CALCulate:COMPare:MASK.
  • Bits masked off as 0 ("don't care") by CALCulate:COMPare:MASK are ignored.
  • The channel width takes precedence over the specified digital pattern. If the specified pattern is greater than the channel width, additional bits will be ignored. For example, if you set the channel width to "BYTE" and then specify a pattern of "256" (1 0000 0000), the pattern will be truncated to "0000 0000" (the leading "1" will be ignored).
  • A Factory Reset (*RST command) clears the pattern compare setting and turns off the pattern comparison mode. An Instrument Preset (SYSTem:PRESet command) or Card Reset (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 for the specified bank. Multiple responses are separated by commas.

Examples

The following command sets the comparison mode for the specified channels to EQUal.

CALC:COMP:TYPE EQU,(@301:302)

 

The following query returns the comparison mode for the two specified channels.

CALC:COMP:TYPE? (@301:302)

Typical Response: EQU,EQU

See Also

CALCulate:COMPare:DATA

CALCulate:COMPare:MASK

CALCulate:COMPare:STATe

OUTPut:ALARm{1|2|3|4}:SOURce