Source code for RsFsw.Implementations.Applications.K18_AmplifierEt.Output.Ifreq.IfFrequency

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class IfFrequencyCls: """IfFrequency commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("ifFrequency", core, parent)
[docs] def set(self, value: float) -> None: """SCPI: OUTPut:IF:IFFRequency \n Snippet: driver.applications.k18AmplifierEt.output.ifreq.ifFrequency.set(value = 1.0) \n Defines the frequency for the IF output of the FSW. The IF frequency of the signal is converted accordingly. Is available in the time domain and if the IF/VIDEO/DEMOD output is configured for IF. If the [IF WIDE OUTPUT] connector is used (TRACe:IQ:WBANd ON, see method RsFsw.Applications.K17_Mcgd.Trace.Iq.Wband.State.set) , this command is available as a query only. It returns the used IF output frequency which is defined automatically by the application according to the center frequency. For more information see 'IF and video signal output'. \n :param value: Unit: HZ """ param = Conversions.decimal_value_to_str(value) self._core.io.write(f'OUTPut:IF:IFFRequency {param}')
[docs] def get(self) -> float: """SCPI: OUTPut:IF:IFFRequency \n Snippet: value: float = driver.applications.k18AmplifierEt.output.ifreq.ifFrequency.get() \n Defines the frequency for the IF output of the FSW. The IF frequency of the signal is converted accordingly. Is available in the time domain and if the IF/VIDEO/DEMOD output is configured for IF. If the [IF WIDE OUTPUT] connector is used (TRACe:IQ:WBANd ON, see method RsFsw.Applications.K17_Mcgd.Trace.Iq.Wband.State.set) , this command is available as a query only. It returns the used IF output frequency which is defined automatically by the application according to the center frequency. For more information see 'IF and video signal output'. \n :return: value: No help available""" response = self._core.io.query_str(f'OUTPut:IF:IFFRequency?') return Conversions.str_to_float(response)