CALCulate:COMPare:STATe
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. You can use the pattern comparison feature to generate an alarm when a specific digital pattern is detected.
Used With:
- 34907A Multifunction Module (digital input channels only)
Parameters
Name Type Range of Values Default Value <state> Boolean {OFF|0|ON|1} This is a required parameter. <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.
- A Factory Reset (*RST command) turns off the pattern comparison mode. An Instrument Preset (SYSTem:PRESet command) or Card Reset (SYSTem:CPON command) does not turn off the pattern comparison mode.
Return Format
The query returns the state of the comparison mode as 0 (OFF) or 1 (ON) for the specified bank. Multiple responses are separated by commas.
Examples
The following command sets the comparison mode ON for the three specified channels.
CALC:COMP:STAT 1,(@201,202,301)
The following query returns the state of the pattern comparison mode for channel 01 on the modules in slot 200 and 300.
CALC:COMP:STAT? (@201,301)
Typical Response: 1,1