CALCulate:SCALe:GAIN

34980A

CALCulate:SCALe:GAIN

Syntax

CALCulate:SCALe:GAIN <gain> [, (@<ch_list>)]

CALCulate:SCALe:GAIN? (@<ch_list>)

Description

This command sets the gain ("M") for scaled readings on the specified multiplexer channels. If you omit the optional <ch_list> parameter, this command applies to the internal DMM, independent of any channels or a scan list.

Used With:

  • 34921A through 34925A Multiplexer Modules

Parameters

Name

Type

Range of Values

Default Value

<gain>

Numeric

Any value between -1E+15 and +1E+15.

M = 1

<ch_list>

Numeric

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

If <ch_list> is omitted, this command applies to the internal DMM.

Remarks

  • Scaling is applied using the following equation:

          Scaled Reading = (Gain x Measurement) + Offset

  • After setting the gain and offset values, use the CALCulate:SCALe:STATe command to enable the scaling function.

  • If you omit the optional <ch_list> parameter, this command sets the gain for the internal DMM. The gain is applied to the internal DMM from the time the CALCulate:SCALe:STATe ON command is executed.

  • Readings can be acquired during a scan using the multiplexer or by the internal DMM independently (when a channel list is not specified). For scanning measurements using the multiplexer modules, an error is generated if the internal DMM is disabled (see INSTrument:DMM[:STATe] command) or not installed in the mainframe.

  • If you change the measurement configuration (function, transducer type, etc.) on a channel or the internal DMM, scaling is turned off on those channels but the gain and offset values are not cleared.

  • If you plan to use scaling on a channel which will also use alarms, be sure to configure the scaling values first. If you attempt to assign the alarm limits first, the instrument will turn off alarms and clear the limit values when you enable scaling on that channel. If you specify a custom measurement label with scaling, it is automatically used when alarms are logged on that channel.

  • If you redefine the scan list, no change will be made to the scaling state or the gain and offset values. If you decide to add a channel back to the scan list, the original gain and offset values are restored.

  • The CONFigure and MEASure? commands automatically set the gain ("M") to 1 and offset ("B") to 0.

  • A Factory Reset (*RST command) turns off scaling and clears the scaling values on all channels (gain = 1, offset = 0). An Instrument Preset (SYSTem:PRESet command) does not clear the scaling values and does not turn off scaling.

Return Format

The query command returns the gain value for each channel specified. Multiple responses are separated by commas.

Examples

The following command sets the gain to +1.25 on channels 3 and 13 in slot 1.

CALC:SCAL:GAIN 1.25,(@1003,1013)

The following query returns the gain settings on channels 3 and 13 in slot 1.

CALC:SCAL:GAIN? (@1003,1013)

Typical Response:  +1.25000000E+00,+1.25000000E+00

See Also

CALCulate:SCALe:OFFSet

CALCulate:SCALe:STATe

CALCulate:SCALe:UNIT