SOURce:FUNCtion:CURRent:GAIN
Syntax
SOURce:FUNCtion:CURRent:GAIN {<gain>|MIN|MAX|DEF}, (@<ch_list>)
SOURce:FUNCtion:CURRent:GAIN? [{MIN|MAX}, ] (@<ch_list>)
Description
This command sets a current 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 20 mA. MIN = 0, MAX = 20 mA. |
1 mA |
<ch_list> |
Numeric |
One or more channels in the form (@sccc).
|
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 offset is set to 1 mA, the maximum gain allowed will be 19 mA.
To control the output current in the level mode, use the SOURce:CURRent[:LEVel] command.
A Factory Reset (*RST command), Instrument Preset (SYSTem:PRESet command), and Card Reset (SYSTem:CPON command) will reset the gain to 1 mA. In addition, storing the instrument state (*SAV command) will reset the gain to 1 mA.
Return Format
The query command returns the gain in the form "+1.00000000E-03" 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 gain on DAC channel 1 in slot 4.
SOUR:FUNC:CURR:GAIN? (@4001)
Typical Response: +5.00000000E-03