Source code for RsSmw.Implementations.Source.Iq.Output.Digital.Bbmm.Interface

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class InterfaceCls: """Interface commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("interface", core, parent)
[docs] def set(self, bbout_interf_mode: enums.BbinInterfaceMode, iqConnector=repcap.IqConnector.Default) -> None: """SCPI: [SOURce]:IQ:OUTPut:DIGital:BBMM<CH>:INTerface \n Snippet: driver.source.iq.output.digital.bbmm.interface.set(bbout_interf_mode = enums.BbinInterfaceMode.DIGital, iqConnector = repcap.IqConnector.Default) \n Selects the connector for output of the digital IQ signal. \n :param bbout_interf_mode: DIGital| HSDin DIGital DIG I/Q HSDin HS DIG I/Q :param iqConnector: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bbmm') """ param = Conversions.enum_scalar_to_str(bbout_interf_mode, enums.BbinInterfaceMode) iqConnector_cmd_val = self._cmd_group.get_repcap_cmd_value(iqConnector, repcap.IqConnector) self._core.io.write(f'SOURce:IQ:OUTPut:DIGital:BBMM{iqConnector_cmd_val}:INTerface {param}')
# noinspection PyTypeChecker
[docs] def get(self, iqConnector=repcap.IqConnector.Default) -> enums.BbinInterfaceMode: """SCPI: [SOURce]:IQ:OUTPut:DIGital:BBMM<CH>:INTerface \n Snippet: value: enums.BbinInterfaceMode = driver.source.iq.output.digital.bbmm.interface.get(iqConnector = repcap.IqConnector.Default) \n Selects the connector for output of the digital IQ signal. \n :param iqConnector: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bbmm') :return: bbout_interf_mode: DIGital| HSDin DIGital DIG I/Q HSDin HS DIG I/Q""" iqConnector_cmd_val = self._cmd_group.get_repcap_cmd_value(iqConnector, repcap.IqConnector) response = self._core.io.query_str(f'SOURce:IQ:OUTPut:DIGital:BBMM{iqConnector_cmd_val}:INTerface?') return Conversions.str_to_scalar_enum(response, enums.BbinInterfaceMode)