SOURce:FUNCtion:CURRent:OFFSet

34980A

SOURce:FUNCtion:CURRent:OFFSet

Syntax

SOURce:FUNCtion:CURRent:OFFSet {<offset>|MIN|MAX|DEF}, (@<ch_list>)

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

Description

This command sets a current offset 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

<offset>

Numeric

Specify any value between -20 mA and +20 mA.

MIN = -20 mA, MAX = +20 mA.

0

<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 current limit of the DAC channel (±20 mA), an error is generated and the value is not applied. For example, if the gain is set to 5 mA, the maximum offset allowed will be 15 mA.

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

Return Format

The query command returns the offset in the form "+0.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 on the waveform. 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:CURR:OFFS 0.01,(@4001)  !Set offset to 10 mA

SOUR:FUNC:CURR:GAIN 0.005,(@4001)  !Set gain to 5 mA
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 offset on DAC channel 1 in slot 4.

SOUR:FUNC:CURR:OFFS? (@4001,4002)

Typical Response:  +5.00000000E-05,+5.00000000E-05

See Also

SOURce:FUNCtion:CURRent:GAIN

SOURce:FUNCtion:VOLTage:OFFSet

TRACe[:DATA]

TRACe[:DATA]:DAC

TRACe[:DATA]:FUNCtion