[docs]classValueCls:"""Value commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("value",core,parent)
[docs]defset(self,level:float)->None:"""SCPI: INPut:GAIN[:VALue] \n Snippet: driver.inputPy.gain.value.set(level = 1.0) \n Selects the 'gain' if the preamplifier is activated (INP:GAIN:STAT ON, see method RsFsw.Applications.K10x_Lte.InputPy. Gain.State.set) . The command requires the additional preamplifier hardware option. \n :param level: For all FSW models except for FSW85, the following settings are available: 15 dB and 30 dB All other values are rounded to the nearest of these two. For FSW85 models: FSW43 or higher: 30 dB Unit: DB """param=Conversions.decimal_value_to_str(level)self._core.io.write(f'INPut:GAIN:VALue {param}')
[docs]defget(self)->float:"""SCPI: INPut:GAIN[:VALue] \n Snippet: value: float = driver.inputPy.gain.value.get() \n Selects the 'gain' if the preamplifier is activated (INP:GAIN:STAT ON, see method RsFsw.Applications.K10x_Lte.InputPy. Gain.State.set) . The command requires the additional preamplifier hardware option. \n :return: level: No help available"""response=self._core.io.query_str(f'INPut:GAIN:VALue?')returnConversions.str_to_float(response)