Features and Functions
3
Keysight 34980A Mainframe User’s Guide
183
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.
Remote Interface Operation (Totalizer):
To assign the alarm number to
report any alarm conditions on the specified totalizer channels, use the following
command.
OUTPut:ALARm[1|2|3|4]:SOURce (@<
ch_list
>)
To configure an alarm on a totalizer channel, specify the desired count as the
upper limit using the following command.
CALCulate:LIMit:UPPer <
count
>,(@<
ch_list
>)
To enable the upper limit on the specified totalizer channel, use the following
command.
CALCulate:LIMit:UPPer:STATe ON,(@<
ch_list
>)
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