from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from ..... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class BstreamCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("bstream", core, parent)
[docs]
def set(self, unit: enums.BstreamUnit) -> None:
"""
``UNIT:BSTReam`` \n
Snippet: ``driver.applications.k14Xnr5G.unit.bstream.set(unit = enums.BstreamUnit.BIT)`` \n
Selects the way the bit stream is displayed.
:param unit: SYMbols Displays the bit stream using symbols BITs Displays the bit stream using bits
"""
param = Conversions.enum_scalar_to_str(unit, enums.BstreamUnit)
self._core.io.write(f'UNIT:BSTReam {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.BstreamUnit:
"""
``UNIT:BSTReam`` \n
Snippet: ``value: enums.BstreamUnit = driver.applications.k14Xnr5G.unit.bstream.get()`` \n
Selects the way the bit stream is displayed.
:return: unit: SYMbols Displays the bit stream using symbols BITs Displays the bit stream using bits
"""
response = self._core.io.query_str(f'UNIT:BSTReam?')
return Conversions.str_to_scalar_enum(response, enums.BstreamUnit)