:INPut:GAIN:CH2
Description
This command gets or sets the gain (probe factor) of channel 2.
Syntax | Parameter |
---|---|
:INPut<ch>:GAIN<tr>:CH2 |
<numeric > |
Parameters | accepted format | allowed suffixes | possible Errors | description |
---|---|---|---|---|
<ch > |
{ 1 | empty } |
none |
Invalid channel index |
Currently only one channel is supported. Empty means 1 is used as default. |
<tr > |
{ 1 | empty } |
none |
Invalid trace index |
Currently only one trace is supported. Empty means 1 is used as default. |
<numeric > |
numeric value | none |
Settings conflict |
The gain as linear value. |
Warning
Only in certain measurement modes certain gain values can be changed. See Allowed Changes for further details.
Allowed Changes
measurement type | CH1 |
CH2 |
---|---|---|
GainPhase |
yes |
yes |
S11 |
no |
no |
S21 |
no |
yes |
Z - P1Reflection |
no |
no |
Z - TSERies |
no |
no |
Z - TSHunt |
no |
no |
Presets
For presets please refer to Measurement Modes.
Sample usage
Set the gain of channel 2 to 5
in GainPhase measurement.
var visaSession = new TcpipSocket(VISA_RESOURCENAME); visaSession.RawIO.Write(":CALC:PAR:DEF GainPhase\n"); visaSession.RawIO.Write(":INP:GAIN:CH2 5\n");
Related commands
Related commands in the Automation Interface
ExternalProbeChannel2 (Gain)
ExternalProbeChannel2 (S21)