from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from .... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class CmsbCls:
"""
| Commands in total: 80
| Subgroups: 13
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("cmsb", core, parent)
@property
def coding(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_coding'):
from .Coding import CodingCls
self._coding = CodingCls(self._core, self._cmd_group)
return self._coding
@property
def fcount(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_fcount'):
from .Fcount import FcountCls
self._fcount = FcountCls(self._core, self._cmd_group)
return self._fcount
@property
def rcount(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_rcount'):
from .Rcount import RcountCls
self._rcount = RcountCls(self._core, self._cmd_group)
return self._rcount
@property
def exrBits(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_exrBits'):
from .ExrBits import ExrBitsCls
self._exrBits = ExrBitsCls(self._core, self._cmd_group)
return self._exrBits
@property
def addFrame(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_addFrame'):
from .AddFrame import AddFrameCls
self._addFrame = AddFrameCls(self._core, self._cmd_group)
return self._addFrame
@property
def clr(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_clr'):
from .Clr import ClrCls
self._clr = ClrCls(self._core, self._cmd_group)
return self._clr
@property
def gapTime(self):
"""
| Commands in total: 2
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_gapTime'):
from .GapTime import GapTimeCls
self._gapTime = GapTimeCls(self._core, self._cmd_group)
return self._gapTime
@property
def bitrate(self):
"""
| Commands in total: 2
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_bitrate'):
from .Bitrate import BitrateCls
self._bitrate = BitrateCls(self._core, self._cmd_group)
return self._bitrate
@property
def nrz(self):
"""
| Commands in total: 16
| Subgroups: 10
| Direct child commands: 0
"""
if not hasattr(self, '_nrz'):
from .Nrz import NrzCls
self._nrz = NrzCls(self._core, self._cmd_group)
return self._nrz
@property
def manchester(self):
"""
| Commands in total: 7
| Subgroups: 4
| Direct child commands: 0
"""
if not hasattr(self, '_manchester'):
from .Manchester import ManchesterCls
self._manchester = ManchesterCls(self._core, self._cmd_group)
return self._manchester
@property
def result(self):
"""
| Commands in total: 13
| Subgroups: 9
| Direct child commands: 0
"""
if not hasattr(self, '_result'):
from .Result import ResultCls
self._result = ResultCls(self._core, self._cmd_group)
return self._result
@property
def frame(self):
"""
| Commands in total: 11
| Subgroups: 4
| Direct child commands: 0
"""
if not hasattr(self, '_frame'):
from .Frame import FrameCls
self._frame = FrameCls(self._core, self._cmd_group)
return self._frame
@property
def filterPy(self):
"""
| Commands in total: 21
| Subgroups: 13
| Direct child commands: 0
"""
if not hasattr(self, '_filterPy'):
from .FilterPy import FilterPyCls
self._filterPy = FilterPyCls(self._core, self._cmd_group)
return self._filterPy
[docs]
def load(self, filename: str, bus=repcap.Bus.Default) -> None:
"""
``BUS<*>:CMSB:LOAD`` \n
Snippet: ``driver.bus.cmsb.load(filename = 'abc', bus = repcap.Bus.Default)`` \n
Opens an existing frame description file in xml format. The default path is //Public/Documents/Rohde-Schwarz/RTx/SaveXML
:param bus: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bus')
"""
param = Conversions.value_to_quoted_str(filename)
bus_cmd_val = self._cmd_group.get_repcap_cmd_value(bus, repcap.Bus)
self._core.io.write(f'BUS{bus_cmd_val}:CMSB:LOAD {param}')
[docs]
def save(self, filename: str, bus=repcap.Bus.Default) -> None:
"""
``BUS<*>:CMSB:SAVE`` \n
Snippet: ``driver.bus.cmsb.save(filename = 'abc', bus = repcap.Bus.Default)`` \n
Saves a created frame description into an xml file ('Save As...') .
The default path is //Public/Documents/Rohde-Schwarz/RTx/SaveXML
:param bus: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bus')
"""
param = Conversions.value_to_quoted_str(filename)
bus_cmd_val = self._cmd_group.get_repcap_cmd_value(bus, repcap.Bus)
self._core.io.write(f'BUS{bus_cmd_val}:CMSB:SAVE {param}')
def clone(self) -> 'CmsbCls':
"""
Clones the group by creating new object from it and its whole existing subgroups.
Also copies all the existing default Repeated Capabilities setting,
which you can change independently without affecting the original group.
"""
new_group = CmsbCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group