from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions
from ...Internal.Utilities import trim_str_response
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class TestCls:
"""
| Commands in total: 57
| Subgroups: 13
| Direct child commands: 4
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("test", core, parent)
@property
def all(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_all'):
from .All import AllCls
self._all = AllCls(self._core, self._cmd_group)
return self._all
@property
def baseband(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_baseband'):
from .Baseband import BasebandCls
self._baseband = BasebandCls(self._core, self._cmd_group)
return self._baseband
@property
def bb(self):
"""
| Commands in total: 25
| Subgroups: 3
| Direct child commands: 1
"""
if not hasattr(self, '_bb'):
from .Bb import BbCls
self._bb = BbCls(self._core, self._cmd_group)
return self._bb
@property
def connector(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_connector'):
from .Connector import ConnectorCls
self._connector = ConnectorCls(self._core, self._cmd_group)
return self._connector
@property
def fader(self):
"""
| Commands in total: 2
| Subgroups: 1
| Direct child commands: 1
"""
if not hasattr(self, '_fader'):
from .Fader import FaderCls
self._fader = FaderCls(self._core, self._cmd_group)
return self._fader
@property
def generator(self):
"""
| Commands in total: 5
| Subgroups: 0
| Direct child commands: 5
"""
if not hasattr(self, '_generator'):
from .Generator import GeneratorCls
self._generator = GeneratorCls(self._core, self._cmd_group)
return self._generator
@property
def hs(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_hs'):
from .Hs import HsCls
self._hs = HsCls(self._core, self._cmd_group)
return self._hs
@property
def pixel(self):
"""
| Commands in total: 6
| Subgroups: 0
| Direct child commands: 6
"""
if not hasattr(self, '_pixel'):
from .Pixel import PixelCls
self._pixel = PixelCls(self._core, self._cmd_group)
return self._pixel
@property
def plimit(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_plimit'):
from .Plimit import PlimitCls
self._plimit = PlimitCls(self._core, self._cmd_group)
return self._plimit
@property
def remote(self):
"""
| Commands in total: 1
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_remote'):
from .Remote import RemoteCls
self._remote = RemoteCls(self._core, self._cmd_group)
return self._remote
@property
def res(self):
"""
| Commands in total: 3
| Subgroups: 0
| Direct child commands: 3
"""
if not hasattr(self, '_res'):
from .Res import ResCls
self._res = ResCls(self._core, self._cmd_group)
return self._res
@property
def serror(self):
"""
| Commands in total: 2
| Subgroups: 2
| Direct child commands: 0
"""
if not hasattr(self, '_serror'):
from .Serror import SerrorCls
self._serror = SerrorCls(self._core, self._cmd_group)
return self._serror
@property
def sw(self):
"""
| Commands in total: 1
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_sw'):
from .Sw import SwCls
self._sw = SwCls(self._core, self._cmd_group)
return self._sw
[docs]
def get_bbin(self) -> bool:
"""
``TEST:BBIN`` \n
Snippet: ``value: bool = driver.test.get_bbin()`` \n
No help available
"""
response = self._core.io.query_str('TEST:BBIN?')
return Conversions.str_to_bool(response)
[docs]
def get_frc(self) -> str:
"""
``TEST:FRC`` \n
Snippet: ``value: str = driver.test.get_frc()`` \n
No help available
"""
response = self._core.io.query_str('TEST:FRC?')
return trim_str_response(response)
[docs]
def set_frc(self, test_freq_resp_cor: str) -> None:
"""
``TEST:FRC`` \n
Snippet: ``driver.test.set_frc(test_freq_resp_cor = 'abc')`` \n
No help available
"""
param = Conversions.value_to_quoted_str(test_freq_resp_cor)
self._core.io.write(f'TEST:FRC {param}')
[docs]
def set_nrp_trigger(self, nrp_trigger: bool) -> None:
"""
``TEST:NRPTrigger`` \n
Snippet: ``driver.test.set_nrp_trigger(nrp_trigger = False)`` \n
No help available
"""
param = Conversions.bool_to_str(nrp_trigger)
self._core.io.write(f'TEST:NRPTrigger {param}')
[docs]
def preset(self) -> None:
"""
``TEST:PRESet`` \n
Snippet: ``driver.test.preset()`` \n
No help available
"""
self._core.io.write(f'TEST:PRESet')
[docs]
def preset_with_opc(self, opc_timeout_ms: int = -1) -> None:
"""
``TEST:PRESet`` \n
Snippet: ``driver.test.preset_with_opc()`` \n
No help available
Same as preset, but waits for the operation to complete before continuing further. Use the RsSmw.utilities.opc_timeout_set() to set the timeout value.
:param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call.
"""
self._core.io.write_with_opc(f'TEST:PRESet', opc_timeout_ms)
def clone(self) -> 'TestCls':
"""
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 = TestCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group