Source code for RsFsw.Implementations.Applications.K6_Pulse.Riq.Select

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SelectCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("select", core, parent)

[docs] def set(self, source: enums.InputSourceC) -> None: """ ``RIQ:SELect`` \n Snippet: ``driver.applications.k6Pulse.riq.select.set(source = enums.InputSourceC.BARKer)`` \n Selects the reference IQ source for time sidelobe measurements. :param source: FIQ | PFM | BARKer | EBARker FIQ A custom waveform is loaded from an iq.tar file. The file to be imported is defined by method ``RsFsw.applications.k6Pulse.riq.fiq.path.set()`` . PFM A polynomial is used to define the signal's phase. BARKer A Barker waveform with a specified primary code is used. EBARker A Barker waveform with a specified primary and secondary code is used. """ param = Conversions.enum_scalar_to_str(source, enums.InputSourceC) self._core.io.write(f'RIQ:SELect {param}')
# noinspection PyTypeChecker
[docs] def get(self) -> enums.InputSourceC: """ ``RIQ:SELect`` \n Snippet: ``value: enums.InputSourceC = driver.applications.k6Pulse.riq.select.get()`` \n Selects the reference IQ source for time sidelobe measurements. :return: source: FIQ | PFM | BARKer | EBARker FIQ A custom waveform is loaded from an iq.tar file. The file to be imported is defined by method ``RsFsw.applications.k6Pulse.riq.fiq.path.set()`` . PFM A polynomial is used to define the signal's phase. BARKer A Barker waveform with a specified primary code is used. EBARker A Barker waveform with a specified primary and secondary code is used. """ response = self._core.io.query_str(f'RIQ:SELect?') return Conversions.str_to_scalar_enum(response, enums.InputSourceC)