Source code for RsSmbv.Implementations.Source.Awgn.Disp

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class DispCls: """Disp commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("disp", core, parent) # noinspection PyTypeChecker
[docs] def get_mode(self) -> enums.NoisAwgnDispMode: """SCPI: [SOURce<HW>]:AWGN:DISP:MODE \n Snippet: value: enums.NoisAwgnDispMode = driver.source.awgn.disp.get_mode() \n Sets the output to that the AWGN settings are related. \n :return: mode: RFA| IQOUT1 """ response = self._core.io.query_str('SOURce<HwInstance>:AWGN:DISP:MODE?') return Conversions.str_to_scalar_enum(response, enums.NoisAwgnDispMode)
# noinspection PyTypeChecker
[docs] def get_oresults(self) -> enums.AnalogDigital: """SCPI: [SOURce<HW>]:AWGN:DISP:ORESults \n Snippet: value: enums.AnalogDigital = driver.source.awgn.disp.get_oresults() \n No command help available \n :return: oresults: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:AWGN:DISP:ORESults?') return Conversions.str_to_scalar_enum(response, enums.AnalogDigital)
[docs] def set_oresults(self, oresults: enums.AnalogDigital) -> None: """SCPI: [SOURce<HW>]:AWGN:DISP:ORESults \n Snippet: driver.source.awgn.disp.set_oresults(oresults = enums.AnalogDigital.ANALog) \n No command help available \n :param oresults: No help available """ param = Conversions.enum_scalar_to_str(oresults, enums.AnalogDigital) self._core.io.write(f'SOURce<HwInstance>:AWGN:DISP:ORESults {param}')