from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from ..... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class ChannelCls:
"""Channel commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("channel", core, parent)
# noinspection PyTypeChecker
[docs]
def get_bandwidth(self) -> enums.CodingChannelBandwidth:
"""SCPI: [SOURce<HW>]:BB:DTMB:CHANnel:[BANDwidth] \n
Snippet: value: enums.CodingChannelBandwidth = driver.source.bb.dtmb.channel.get_bandwidth() \n
Selects the channel bandwidth. \n
:return: dtmb_bandwidth: BW_6| BW_7| BW_8
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:DTMB:CHANnel:BANDwidth?')
return Conversions.str_to_scalar_enum(response, enums.CodingChannelBandwidth)
[docs]
def set_bandwidth(self, dtmb_bandwidth: enums.CodingChannelBandwidth) -> None:
"""SCPI: [SOURce<HW>]:BB:DTMB:CHANnel:[BANDwidth] \n
Snippet: driver.source.bb.dtmb.channel.set_bandwidth(dtmb_bandwidth = enums.CodingChannelBandwidth.BW_6) \n
Selects the channel bandwidth. \n
:param dtmb_bandwidth: BW_6| BW_7| BW_8
"""
param = Conversions.enum_scalar_to_str(dtmb_bandwidth, enums.CodingChannelBandwidth)
self._core.io.write(f'SOURce<HwInstance>:BB:DTMB:CHANnel:BANDwidth {param}')