Chapter 5 Remote Interface Reference

Alarm System Overview

Digital I/O Alarm Commands

See also “Using Alarms With the Multifunction Module” in chapter 4 starting on page 130.

CALCulate

 

 

:COMPare:TYPE {EQUalNEQual}[,(@<x

>)]

:COMPare:TYPE? [(@<x

>)]

 

Select the comparison mode for alarms on the specified DIO channels. Select EQUal to generate an alarm when the data read from the port is equal to CALC:COMP:DATA after being masked by CALC:COMP:MASK.

Select NEQual (not equal) to generate an alarm when the data read from the port is not equal to CALC:COMP:DATA after being masked by CALC:COMP:MASK. The default is “NEQual”. The digital input channels are numbered “ 01” (LSB) and “ 02” (MSB), where represents the slot.

The :TYPE? query returns the comparison mode setting on the specified DIO channels. Returns “EQU” or “NEQ”.

CALCulate

 

 

5

:COMPare:DATA <yvv >[,(@<xt

>)]

:COMPare:DATA? [(@<x

>)]

 

 

Specify the digital pattern for comparisons on the specified DIO channels. You must specify the digital pattern as a decimal value between 0 and 255 (binary data is not accepted). The digital input channels are numbered “ 01” (LSB) and “ 02” (MSB), where represents the slot number. The :DATA? query returns the comparison pattern as a decimal value.

253

Page 251
Image 251
HP 34970A manual Alarm System Overview Digital I/O Alarm Commands, CALCulate COMPareTYPE EQUalNEQual,@x COMPareTYPE? @x