[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,externalGen=repcap.ExternalGen.Nr1)->None:"""SCPI: SOURce:EXTernal<gen>:FREQuency:OFFSet \n Snippet: driver.source.external.frequency.offset.set(offset = 1.0, externalGen = repcap.ExternalGen.Nr1) \n Defines the frequency offset of the generator with reference to the analyzer frequency. Is only valid if External Generator Control (R&S FSW-B10) is installed and active. Select the offset such that the frequency range of the generator is not exceeded if the following formula is applied to the start and stop frequency of the analyzer: \n :param offset: numeric value, specified in Hz, kHz, MHz or GHz, rounded to the nearest Hz Unit: HZ :param externalGen: optional repeated capability selector. Default value: Nr1 """param=Conversions.decimal_value_to_str(offset)externalGen_cmd_val=self._cmd_group.get_repcap_cmd_value(externalGen,repcap.ExternalGen)self._core.io.write(f'SOURce:EXTernal{externalGen_cmd_val}:FREQuency:OFFSet {param}')
[docs]defget(self,externalGen=repcap.ExternalGen.Nr1)->float:"""SCPI: SOURce:EXTernal<gen>:FREQuency:OFFSet \n Snippet: value: float = driver.source.external.frequency.offset.get(externalGen = repcap.ExternalGen.Nr1) \n Defines the frequency offset of the generator with reference to the analyzer frequency. Is only valid if External Generator Control (R&S FSW-B10) is installed and active. Select the offset such that the frequency range of the generator is not exceeded if the following formula is applied to the start and stop frequency of the analyzer: \n :param externalGen: optional repeated capability selector. Default value: Nr1 :return: offset: numeric value, specified in Hz, kHz, MHz or GHz, rounded to the nearest Hz Unit: HZ"""externalGen_cmd_val=self._cmd_group.get_repcap_cmd_value(externalGen,repcap.ExternalGen)response=self._core.io.query_str(f'SOURce:EXTernal{externalGen_cmd_val}:FREQuency:OFFSet?')returnConversions.str_to_float(response)