Help Icon
Search Results for

    Show / Hide Table of Contents

    :INPut:GAIN:CH2

    Description

    This command gets or sets the gain (probe factor) of channel 2.

    • Command
    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.
    • Query
    Syntax Response
    :INPut<ch>:GAIN<tr>:CH2? <numeric>
    Parameters accepted format description
    <ch> { 1 | empty } Currently only one channel is supported. Empty means 1 is used as default.
    <tr> { 1 | empty } Currently only one trace is supported. Empty means 1 is used as default.
    Response value description
    <numeric> the attenuation 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 - ECOupler yes yes
    Z - EBRidge yes yes
    Z - IADapter no no
    Z - P1Reflection no no
    Z - TSERies no no
    Z - TSHunt no no
    Z - VCGain yes yes

    Presets

    For presets please refer to Measurement Modes and Default Settings.

    Sample usage

    Set the gain of channel 2 to 5 in GainPhase measurement.

    • C#
    var visaSession = new TcpipSocket(VISA_RESOURCENAME);
    visaSession.RawIO.Write(":CALC:PAR:DEF GainPhase\n");
    visaSession.RawIO.Write(":INP:GAIN:CH2 5\n");
    
    • Python
    visaSession.write(':CALC:PAR:DEF GainPhase\n')
    visaSession.write(':INP:GAIN:CH2 5\n')
    

    Related commands

    :INPut:GAIN:CH1

    In this article
    Back to top Generated by DocFX