OUTPut:ALARm<n>:SOURce

34980A

OUTPut:ALARm<n>:SOURce

Syntax

OUTPut:ALARm<n>:SOURce (@<ch_list>)

OUTPut:ALARm<n>:SOURce?

Description

This command assigns one of four alarm numbers to report any alarm conditions on the specified multiplexer or digital channels.

On the digital modules, you can configure the instrument to generate an alarm when a specific bit pattern or bit pattern change is detected on a digital input channel or when a specific count is reached on a totalizer channel. These channels do not have to be part of the active scan list to generate an alarm.

Used With:

  • 34921A through 34925A Multiplexer Modules

  • 34950A Digital I/O Module (digital input and counter channels only)

  • 34952A Multifunction Module (digital input and totalizer channels only)

Parameters

Name

Type

Range of Values

Default Value

<n>

Discrete

{1|2|3|4}

This is a required parameter

<ch_list>

Numeric

One or more channels in the form (@sccc).

34950A:

Digital Input:  s101 through s104, s201 through s204

Counter:  s301 or s302

34952A:

Digital Input:  s001 through s004

Totalizer:  s005

This is a required parameter

Remarks

  • You can assign multiple channels to any of the four available alarms. For example, you can configure the instrument to generate an alarm on the Alarm 1 output when a limit is exceeded on any of channels 1003, 2005, or 3010. You cannot, however, assign alarms on a specific channel to more than one alarm number.

  • To clear all channel assignments for a specific alarm, send the command with an empty channel list as shown in the example below:

        OUTP:ALAR1:SOUR (@)

  • A Factory Reset (*RST command) clears all alarm limits and turns off all alarms. An Instrument Preset (SYSTem:PRESet command) or Card Reset (SYSTem:CPON command) does not clear the alarm limits and does not turn off alarms.

Return Format

The query command returns a series of channel numbers in Definite-Length Block format. The syntax is a pound sign (#) followed by a non-zero digit representing the number of digits in the decimal integer to follow. This digit is followed by a decimal integer indicating the number of 8-bit data bytes to follow. This is followed by a block of data containing the specified number of bytes.

For example:

 

An empty scan list (one with no channels selected) will return "#13(@)".

Examples

The following command assigns Alarm 2 to report any alarm conditions on channels 3 and 13 in slot 1.

OUTP:ALAR2:SOUR (@1003,1013)

The following query returns the channels assigned to Alarm 2.

OUTP:ALAR2:SOUR?

Typical Response:  #212(@1003,1013)

See Also

CALCulate:LIMit:LOWer

CALCulate:LIMit:UPPer

OUTPut:ALARm:MODE

OUTPut:ALARm:SLOPe

OUTPut:ALARM<n>:CLEar