4 Features and Functions
160 Keysight 34970A/34972A User’s Guide
– Remote Interface Operation (Digital Input Channel): To assign the alarm
number to report any alarm conditions on the specified digital input channels,
use the following command.
OUTPut:ALARm[1|2|3|4]:SOURce (@<ch_list>)
To configure alarms on the specified digital input channel, use the following
commands (also see the example on the following page).
CALCulate
:COMPare:TYPE {EQUal|NEQual}[,(@<ch_list>)]
:COMPare:DATA <data>[,(@<ch_list>)]
:COMPare:MASK <mask>[,(@<ch_list>)]
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.
Use CALC:COMP:MASK to designate the “don’t care” bits. Bits that you set to
“0” in the mask are ignored.
To enable the specified alarm mode, send the following command.
CALCulate:COMPare:STATe ON [,(@<ch_list>)]
Example: Configuring an Alarm on a Digital Input
Assume that you want to generate an alarm when a binary pattern of “1000” is
read on the upper four bits of port 1. Send the following commands to
configure the port for an alarm.
CALC:COMP:TYPE EQUAL,(@301)
CALC:COMP:DATA 128,(@301)
CALC:COMP:MASK 240,(@301)
OUTPUT:ALARM2:SOURCE (@301)
CALC:COMP:STATE ON,(@301)