from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ......Internal.Utilities import trim_str_response
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class DumdCls:
"""Dumd commands group definition. 6 total commands, 0 Subgroups, 6 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("dumd", core, parent)
# noinspection PyTypeChecker
[docs] def get_data(self) -> enums.DataSourceA:
"""SCPI: [SOURce<HW>]:BB:V5G:DL:DUMD:DATA \n
Snippet: value: enums.DataSourceA = driver.source.bb.v5G.downlink.dumd.get_data() \n
No command help available \n
:return: data: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:DL:DUMD:DATA?')
return Conversions.str_to_scalar_enum(response, enums.DataSourceA)
[docs] def set_data(self, data: enums.DataSourceA) -> None:
"""SCPI: [SOURce<HW>]:BB:V5G:DL:DUMD:DATA \n
Snippet: driver.source.bb.v5G.downlink.dumd.set_data(data = enums.DataSourceA.DLISt) \n
No command help available \n
:param data: No help available
"""
param = Conversions.enum_scalar_to_str(data, enums.DataSourceA)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:DL:DUMD:DATA {param}')
[docs] def get_dselect(self) -> str:
"""SCPI: [SOURce<HW>]:BB:V5G:DL:DUMD:DSELect \n
Snippet: value: str = driver.source.bb.v5G.downlink.dumd.get_dselect() \n
No command help available \n
:return: filename: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:DL:DUMD:DSELect?')
return trim_str_response(response)
[docs] def set_dselect(self, filename: str) -> None:
"""SCPI: [SOURce<HW>]:BB:V5G:DL:DUMD:DSELect \n
Snippet: driver.source.bb.v5G.downlink.dumd.set_dselect(filename = 'abc') \n
No command help available \n
:param filename: No help available
"""
param = Conversions.value_to_quoted_str(filename)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:DL:DUMD:DSELect {param}')
# noinspection PyTypeChecker
[docs] def get_modulation(self) -> enums.ModulationB:
"""SCPI: [SOURce<HW>]:BB:V5G:DL:DUMD:MODulation \n
Snippet: value: enums.ModulationB = driver.source.bb.v5G.downlink.dumd.get_modulation() \n
No command help available \n
:return: modulation: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:DL:DUMD:MODulation?')
return Conversions.str_to_scalar_enum(response, enums.ModulationB)
[docs] def set_modulation(self, modulation: enums.ModulationB) -> None:
"""SCPI: [SOURce<HW>]:BB:V5G:DL:DUMD:MODulation \n
Snippet: driver.source.bb.v5G.downlink.dumd.set_modulation(modulation = enums.ModulationB.QAM16) \n
No command help available \n
:param modulation: No help available
"""
param = Conversions.enum_scalar_to_str(modulation, enums.ModulationB)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:DL:DUMD:MODulation {param}')
[docs] def get_op_sub_frames(self) -> bool:
"""SCPI: [SOURce<HW>]:BB:V5G:DL:DUMD:OPSubframes \n
Snippet: value: bool = driver.source.bb.v5G.downlink.dumd.get_op_sub_frames() \n
No command help available \n
:return: omit_prs_sf: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:DL:DUMD:OPSubframes?')
return Conversions.str_to_bool(response)
[docs] def set_op_sub_frames(self, omit_prs_sf: bool) -> None:
"""SCPI: [SOURce<HW>]:BB:V5G:DL:DUMD:OPSubframes \n
Snippet: driver.source.bb.v5G.downlink.dumd.set_op_sub_frames(omit_prs_sf = False) \n
No command help available \n
:param omit_prs_sf: No help available
"""
param = Conversions.bool_to_str(omit_prs_sf)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:DL:DUMD:OPSubframes {param}')
[docs] def get_pattern(self) -> str:
"""SCPI: [SOURce<HW>]:BB:V5G:DL:DUMD:PATTern \n
Snippet: value: str = driver.source.bb.v5G.downlink.dumd.get_pattern() \n
No command help available \n
:return: pattern: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:DL:DUMD:PATTern?')
return trim_str_response(response)
[docs] def set_pattern(self, pattern: str) -> None:
"""SCPI: [SOURce<HW>]:BB:V5G:DL:DUMD:PATTern \n
Snippet: driver.source.bb.v5G.downlink.dumd.set_pattern(pattern = rawAbc) \n
No command help available \n
:param pattern: No help available
"""
param = Conversions.value_to_str(pattern)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:DL:DUMD:PATTern {param}')
[docs] def get_power(self) -> float:
"""SCPI: [SOURce<HW>]:BB:V5G:DL:DUMD:POWer \n
Snippet: value: float = driver.source.bb.v5G.downlink.dumd.get_power() \n
No command help available \n
:return: power: No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:DL:DUMD:POWer?')
return Conversions.str_to_float(response)
[docs] def set_power(self, power: float) -> None:
"""SCPI: [SOURce<HW>]:BB:V5G:DL:DUMD:POWer \n
Snippet: driver.source.bb.v5G.downlink.dumd.set_power(power = 1.0) \n
No command help available \n
:param power: No help available
"""
param = Conversions.decimal_value_to_str(power)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:DL:DUMD:POWer {param}')