Agilent Technologies 34901A User Manual page 135

Data acquisition/switch unit
Table of Contents

Advertisement

Chapter 4 Features and Functions
Alarm Limits
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.
Here are the calculations used to evaluate the alarm (assume that a
A
B
X-OR
decimal 146 was read from the port):
0
0
0
0
1
1
Bit 7
1
0
1
1
1
0
A
B
AND
0
0
0
0
1
0
1
0
0
Since the calculations produce a non-zero result (decimal 16),
1
1
1
an alarm is not generated in this example.
• Remote Interface Operation (Totalizer Channel): To assign the alarm
number to report any alarm conditions on the specified totalizer
channels, use the following command.
To configure an alarm on a totalizer channel, specify the desired
count as the upper limit using the following command.
To enable the upper limit on the specified totalizer channel, use the
following command.
132
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
CALC:COMP:TYPE EQUAL,(
CALC:COMP:DATA 128,(
CALC:COMP:MASK 240,(
OUTPUT:ALARM2:SOURCE (
CALC:COMP:STATE ON,(
Bit 0
Data read from port (decimal 146)
1 0 0 1 0 0 1 0
CALC:COMP:DATA command (decimal 128)
1 0 0 0 0 0 0 0
"X-OR" result
0 0 0 1 0 0 1 0
CALC:COMP:MASK command (decimal 240)
1 1 1 1 0 0 0 0
"AND" result (no alarm generated)
0 0 0 1 0 0 0 0
OUTPut:ALARm[1|2|3|4]:SOURce (
CALCulate:LIMit:UPPer <
CALCulate:LIMit:UPPer:STATe ON [,(
@
301)
@
301)
@
301)
@
301)
@
301)
ch_list
@
<
>)
count
>[,(
@
<
ch_list
>)]
ch_list
@
<
>)]

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents