2635A
Users Manual
4-26
Table 4-5. Command and Query Reference (cont)
ALARMS? Active Alarms Query
Returns alarm status for a single scanned channel, or alarm status for all
scanned channels.
ALARMS? <channel>
<channel> = (0 .. 20) or leave blank
The values returned represents data from the most recent scan, whether
scanning is active or note. The integers returned indicated the alarms
condition as follows:
0 neither limit is in alarm and/or alarm(s) not defined
1 Limit "1" in alarm
2 Limit "2" in alarm
3 Limit "1" and Limit "2" in alarm
For a single scanned channel, use ALARMS? <channel>. Return data for
a single scanned channel consists of a single integer, as defined above.
An Execution Error results if a request is made for a channel defined as
OFF, the channel specified is invalid, no scan measurements have been
made or are being made, or values have been cleared by REVIEW_CLR
or by changing any parameter on any channel.
For all canned channels, use ALARMS?. Return data for all scanned
channels is a string of integers, separated by commas. The first digit
represents the alarm status of the lowest channel scanned, and the last
digit represents the alarm status of the highest channel scanned.
Example: ALARMS? 5 returns 1 [Channel 5 is in Limit 1alarm.]
Example: ALARMS? returns 0,2,3,0,1,1, [Six channels were scanned. The
first has no alarm or alarms were not defined, the second has a Limit 2
alarm, the third has both Limit 1 and Limit 2 in alarm, the fourth has no
alarm or alarms were not defined, the fifth and sixth have a Limit 1 alarm.]