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

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class PcodeCls: """Pcode commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("pcode", core, parent)
[docs] def set(self, length: int) -> None: """SCPI: RIQ:EBARker:PCODe \n Snippet: driver.applications.k6Pulse.riq.ebarker.pcode.set(length = 1) \n Selects the reference IQ embedded barker primary code length for time sidelobe measurements. \n :param length: No help available """ param = Conversions.decimal_value_to_str(length) self._core.io.write(f'RIQ:EBARker:PCODe {param}')
[docs] def get(self) -> int: """SCPI: RIQ:EBARker:PCODe \n Snippet: value: int = driver.applications.k6Pulse.riq.ebarker.pcode.get() \n Selects the reference IQ embedded barker primary code length for time sidelobe measurements. \n :return: length: No help available""" response = self._core.io.query_str(f'RIQ:EBARker:PCODe?') return Conversions.str_to_int(response)