SOURce:FUNCtion:VOLTage:GAIN

34980A

SOURce:FUNCtion:VOLTage:GAIN

Syntax

SOURce:FUNCtion:VOLTage:GAIN {<gain>|MIN|MAX|DEF}, (@<ch_list>)

SOURce:FUNCtion:VOLTage:GAIN? [{MIN|MAX}, ] (@<ch_list>)

Description

This command sets a voltage gain for scaled trace outputs on the specified channels on the 34951A Isolated DAC Module. Scaling is applied using the following equation:

Scaled Value = (Gain x Trace Data) + Offset

Used With:

  • 34951A Isolated DAC Module

Parameters

Name

Type

Range of Values

Default Value

<gain>

Numeric

Specify any value between 0 and 16 volts.

MIN = 0, MAX = 16 volts.

1 volt

<ch_list>

Numeric

One or more channels in the form (@sccc).
Select from s001, s002, s003, or s004.

This is a required parameter

Remarks

  • If the resulting scaled value goes outside the present limit of the DAC channel (±16 Vdc), an error is generated and the value is not applied. For example, if the offset is set to 1V, the maximum gain allowed will be 15V.

  • Each DAC channel is capable of ±16 Vdc up to 10 mA maximum current. For protection, each channel incorporates a resettable thermal fuse that will open at greater than 20 mA. If an overload condition exists, the fuse will open, but no error or Service Request will be generated. To reset the fuse, remove the overload condition and wait a few minutes for the fuse to cool.

  • To control the output voltage in the level mode, use the SOURce:VOLTage[:LEVel] command.

  • A Factory Reset (*RST command), Instrument Preset (SYSTem:PRESet command), and Card Reset (SYSTem:CPON command) will reset the gain to 1 volt. In addition, storing the instrument state (*SAV command) will reset the gain to 1 volt.

Return Format

The query command returns the gain in the form "+1.00000000E+00" for each DAC channel specified. Multiple responses are separated by commas.

Examples

The following command downloads a 1000-point square waveform to memory on the module in slot 4 and outputs the waveform from DAC channel 1. The gain and offset are adjusted to TTL levels. The trace name is "TEST_SQU".

TRAC:FUNC 4,SQU, TEST_SQU, 1000  !Download 1000-point square wave to memory
SOUR:FUNC:TRAC TEST_SQU,(@4001)  !Assign trace to channel 1
SOUR:FUNC:VOLT:OFFS 2.5,(@4001)  !Set offset to 2.5 volts
SOUR:FUNC:VOLT:GAIN 2.5,(@4001)
 !Set gain to 2.5
OUTP:STAT ON,(@4001)  !Enable outputs from channel 1
SOUR:FUNC:ENAB ON,(@4001)  !Enable trace mode on channel 1

The following query returns the gain on DAC channel 1 in slot 4.

SOUR:FUNC:VOLT:GAIN? (@4001)

Typical Response:  +2.50000000E+00

See Also

SOURce:FUNCtion:CURRent:GAIN

SOURce:FUNCtion:VOLTage:OFFSet

TRACe[:DATA]

TRACe[:DATA]:DAC

TRACe[:DATA]:FUNCtion