from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class IfFrequencyCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("ifFrequency", core, parent)
[docs]
def set(self, value: float) -> None:
"""
``OUTPut:IF:IFFRequency`` \n
Snippet: ``driver.applications.k9X11Ad.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.k17Mcgd.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'.
: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:
"""
``OUTPut:IF:IFFRequency`` \n
Snippet: ``value: float = driver.applications.k9X11Ad.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.k17Mcgd.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'.
"""
response = self._core.io.query_str(f'OUTPut:IF:IFFRequency?')
return Conversions.str_to_float(response)