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

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


# 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, frequency: float, outputConnector=repcap.OutputConnector.Default) -> None: """ ``OUTPut<xxx>:IF:IFFRequency`` \n Snippet: ``driver.applications.k14Xnr5G.output.ifreq.ifFrequency.set(frequency = 1.0, outputConnector = repcap.OutputConnector.Default)`` \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 frequency: Unit: HZ :param outputConnector: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Output') """ param = Conversions.decimal_value_to_str(frequency) outputConnector_cmd_val = self._cmd_group.get_repcap_cmd_value(outputConnector, repcap.OutputConnector) self._core.io.write(f'OUTPut{outputConnector_cmd_val}:IF:IFFRequency {param}')
[docs] def get(self, outputConnector=repcap.OutputConnector.Default) -> float: """ ``OUTPut<xxx>:IF:IFFRequency`` \n Snippet: ``value: float = driver.applications.k14Xnr5G.output.ifreq.ifFrequency.get(outputConnector = repcap.OutputConnector.Default)`` \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 outputConnector: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Output') :return: frequency: Unit: HZ """ outputConnector_cmd_val = self._cmd_group.get_repcap_cmd_value(outputConnector, repcap.OutputConnector) response = self._core.io.query_str(f'OUTPut{outputConnector_cmd_val}:IF:IFFRequency?') return Conversions.str_to_float(response)