[docs]classOffsetCls:"""Offset commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("offset",core,parent)
[docs]defset(self,offset:float)->None:"""SCPI: SOURce:POWer[:LEVel][:IMMediate]:OFFSet \n Snippet: driver.source.power.level.immediate.offset.set(offset = 1.0) \n Is only valid if External Generator Control (R&S FSW-B10) is installed. \n :param offset: Range: -200 dB to +200 dB, Unit: DB """param=Conversions.decimal_value_to_str(offset)self._core.io.write(f'SOURce:POWer:LEVel:IMMediate:OFFSet {param}')
[docs]defget(self)->float:"""SCPI: SOURce:POWer[:LEVel][:IMMediate]:OFFSet \n Snippet: value: float = driver.source.power.level.immediate.offset.get() \n Is only valid if External Generator Control (R&S FSW-B10) is installed. \n :return: offset: Range: -200 dB to +200 dB, Unit: DB"""response=self._core.io.query_str(f'SOURce:POWer:LEVel:IMMediate:OFFSet?')returnConversions.str_to_float(response)