[docs]classGainCls:"""Gain commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("gain",core,parent)
[docs]defset(self,gain:float)->None:"""SCPI: CONFigure:PSWeep:EXPected:GAIN \n Snippet: driver.applications.k18AmplifierEt.configure.psweep.expected.gain.set(gain = 1.0) \n This command defines the expected gain of the DUT. This is necessary when you synchronize the generator output level and the reference level of the analyzer method RsFsw.Applications.K18_AmplifierEt.Configure.Psweep.Adjust.Level.State.set = ON. INTRO_CMD_HELP: Prerequisites for this command \n - Select 'Generator Power' as one of the parameters. \n :param gain: numeric value Unit: dB """param=Conversions.decimal_value_to_str(gain)self._core.io.write(f'CONFigure:PSWeep:EXPected:GAIN {param}')
[docs]defget(self)->float:"""SCPI: CONFigure:PSWeep:EXPected:GAIN \n Snippet: value: float = driver.applications.k18AmplifierEt.configure.psweep.expected.gain.get() \n This command defines the expected gain of the DUT. This is necessary when you synchronize the generator output level and the reference level of the analyzer method RsFsw.Applications.K18_AmplifierEt.Configure.Psweep.Adjust.Level.State.set = ON. INTRO_CMD_HELP: Prerequisites for this command \n - Select 'Generator Power' as one of the parameters. \n :return: gain: numeric value Unit: dB"""response=self._core.io.query_str(f'CONFigure:PSWeep:EXPected:GAIN?')returnConversions.str_to_float(response)