from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class TnosCls:
"""
| Commands in total: 22
| Subgroups: 12
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("tnos", core, parent)
@property
def erEnable(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_erEnable'):
from .ErEnable import ErEnableCls
self._erEnable = ErEnableCls(self._core, self._cmd_group)
return self._erEnable
@property
def frEnable(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_frEnable'):
from .FrEnable import FrEnableCls
self._frEnable = FrEnableCls(self._core, self._cmd_group)
return self._frEnable
@property
def fiEnable(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_fiEnable'):
from .FiEnable import FiEnableCls
self._fiEnable = FiEnableCls(self._core, self._cmd_group)
return self._fiEnable
@property
def bit(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_bit'):
from .Bit import BitCls
self._bit = BitCls(self._core, self._cmd_group)
return self._bit
@property
def doperator(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_doperator'):
from .Doperator import DoperatorCls
self._doperator = DoperatorCls(self._core, self._cmd_group)
return self._doperator
@property
def dmin(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_dmin'):
from .Dmin import DminCls
self._dmin = DminCls(self._core, self._cmd_group)
return self._dmin
@property
def dmax(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_dmax'):
from .Dmax import DmaxCls
self._dmax = DmaxCls(self._core, self._cmd_group)
return self._dmax
@property
def ioperator(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_ioperator'):
from .Ioperator import IoperatorCls
self._ioperator = IoperatorCls(self._core, self._cmd_group)
return self._ioperator
@property
def imin(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_imin'):
from .Imin import IminCls
self._imin = IminCls(self._core, self._cmd_group)
return self._imin
@property
def imax(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_imax'):
from .Imax import ImaxCls
self._imax = ImaxCls(self._core, self._cmd_group)
return self._imax
@property
def error(self):
"""
| Commands in total: 1
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_error'):
from .Error import ErrorCls
self._error = ErrorCls(self._core, self._cmd_group)
return self._error
@property
def frame(self):
"""
| Commands in total: 9
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_frame'):
from .Frame import FrameCls
self._frame = FrameCls(self._core, self._cmd_group)
return self._frame
[docs]
def set_chk_all(self, search: str) -> None:
"""
``SEARch:TRIGger:TNOS:CHKall`` \n
Snippet: ``driver.search.trigger.tnos.set_chk_all(search = 'abc')`` \n
Enables the search for all available frame types.
"""
param = Conversions.value_to_quoted_str(search)
self._core.io.write_with_opc(f'SEARch:TRIGger:TNOS:CHKall {param}')
[docs]
def set_clr(self, search: str) -> None:
"""
``SEARch:TRIGger:TNOS:CLR`` \n
Snippet: ``driver.search.trigger.tnos.set_clr(search = 'abc')`` \n
Disables the search for all available frames and error types.
"""
param = Conversions.value_to_quoted_str(search)
self._core.io.write_with_opc(f'SEARch:TRIGger:TNOS:CLR {param}')
def clone(self) -> 'TnosCls':
"""
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 = TnosCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group