Source code for RsFsw.Implementations.Applications.K6_Pulse.Riq.Ebarker.Scode

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


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

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

[docs] def set(self, length: int) -> None: """ ``RIQ:EBARker:SCODe`` \n Snippet: ``driver.applications.k6Pulse.riq.ebarker.scode.set(length = 1)`` \n Selects the reference IQ embedded barker secondary code length for time sidelobe measurements. """ param = Conversions.decimal_value_to_str(length) self._core.io.write(f'RIQ:EBARker:SCODe {param}')
[docs] def get(self) -> int: """ ``RIQ:EBARker:SCODe`` \n Snippet: ``value: int = driver.applications.k6Pulse.riq.ebarker.scode.get()`` \n Selects the reference IQ embedded barker secondary code length for time sidelobe measurements. """ response = self._core.io.query_str(f'RIQ:EBARker:SCODe?') return Conversions.str_to_int(response)