Source code for RsSmbv.Implementations.Source.Bb.W3Gpp.Setting.Tsetup.Receiver.Mstation

from typing import List

from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
from ........Internal.Utilities import trim_str_response


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class MstationCls: """Mstation commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("mstation", core, parent)
[docs] def get_catalog(self) -> List[str]: """SCPI: [SOURce<HW>]:BB:W3GPp:SETTing:TSETup:RECeiver:MSTation:CATalog \n Snippet: value: List[str] = driver.source.bb.w3Gpp.setting.tsetup.receiver.mstation.get_catalog() \n No command help available \n :return: catalog: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:W3GPp:SETTing:TSETup:RECeiver:MSTation:CATalog?') return Conversions.str_to_str_list(response)
[docs] def get_value(self) -> str: """SCPI: [SOURce<HW>]:BB:W3GPp:SETTing:TSETup:RECeiver:MSTation \n Snippet: value: str = driver.source.bb.w3Gpp.setting.tsetup.receiver.mstation.get_value() \n No command help available \n :return: mstation: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:W3GPp:SETTing:TSETup:RECeiver:MSTation?') return trim_str_response(response)
[docs] def set_value(self, mstation: str) -> None: """SCPI: [SOURce<HW>]:BB:W3GPp:SETTing:TSETup:RECeiver:MSTation \n Snippet: driver.source.bb.w3Gpp.setting.tsetup.receiver.mstation.set_value(mstation = 'abc') \n No command help available \n :param mstation: No help available """ param = Conversions.value_to_quoted_str(mstation) self._core.io.write(f'SOURce<HwInstance>:BB:W3GPp:SETTing:TSETup:RECeiver:MSTation {param}')