Features and Functions 2
34980A User’s Guide 77
Remote Interface Operation (Digital Input): 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
The following program segment sets the digital pattern for the 34950A in
slot 3 and then enables the pattern comparison mode. When the data read
from the bank is equal to the comparison pattern, an alarm is generated
on Alarm 2.
CALC:COMP:DATA:WORD #HF6,(@3101)
CALC:COMP:TYPE EQUAL,(@3101)
OUTP:ALARM2:SOUR (@3101)
CALC:COMP:STAT ON,(@3101)
Set compare pattern (1111 0110)
Generate alarm on match
Enable alarms
Enable pattern compare mode